SlideShare a Scribd company logo
1 of 3
Download to read offline
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 }
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){
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

More Related Content

More from Nicole Rodríguez

More from Nicole Rodríguez (6)

Presentación select avanzad omod
Presentación select avanzad omodPresentación select avanzad omod
Presentación select avanzad omod
 
Código fuente guitarra
Código fuente guitarraCódigo fuente guitarra
Código fuente guitarra
 
Transacción
TransacciónTransacción
Transacción
 
Matrices
MatricesMatrices
Matrices
 
Poster
PosterPoster
Poster
 
Base de datos
Base de datosBase de datos
Base de datos
 

Datos

  • 1. 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 }
  • 2. 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){
  • 3. 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