datos

3

Click here to load reader

Upload: nicole-rodriguez

Post on 29-Jun-2015

137 views

Category:

Travel


6 download

TRANSCRIPT

Page 1: Datos

CLASE DATOS

1 2

3 package transacciones;

4

5

6 public class datos{

7 int contador;

8 double x;

9 double y;

10

11 public datos() {

12 }

13

14

15 public datos(double x, double y){

16 //this.contador = contador;

17 this.x=x;

18 this.y=y;

19 /* """"""""""""" M e t o d o s""""""""""""""" """""""""""""""""

20 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""*/

21

22 /*public datos(int contador,double x, double y){

23 this.contador = contador;

24 this.x=x;

25 this.y=y;*/

26 }

Page 2: Datos

27

28 datos(double x, double y, double parsedouble) {

29 throw new UnsupportedOperationException("Not yet implemented");

30 }

31

32

33

34 /* """"""""""""" M e t o d o s X """""""""""""""""

35 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""*/

36

37 public double getX(){

38 return x;

39 }

40

41 public void setX(double x){

42 this.x=x;

43 }

44

45

46 /* """"""""""""" M e t o d o s Y """"""""""""""""""""""""""""""

47 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""*/

48

49 public double getY(){

50 return y;

51

52 }

53

54 public void setY(double y){

Page 3: Datos

55 this.y=y;

56 }

57

58 public int getcontador(){

59 return contador;

60

61 }

62

63 public void setcontador( int contador){

64 this.contador=contador;

65

66

67 }

68 }

69