1. /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package proyectoclase;
/**
*
* @author salaj201
*/
public class cLsEstudiantes {
/*Atributosde la clase */
public int cedulas;
public String strNombres;
public String strApellidos;
public String strDireccion;
//get and set//
public int getCedulas() {
return cedulas;
}
public void setCedulas(int cedulas) {
this.cedulas = cedulas;
}
public String getStrNombres() {
return strNombres;
}
public void setStrNombres(String strNombres) {
this.strNombres = strNombres;
}
public String getStrApellidos() {
return strApellidos;
}
public void setStrApellidos(String strApellidos) {
this.strApellidos = strApellidos;
}
public String getStrDireccion() {
return strDireccion;
}
public void setStrDireccion(String strDireccion) {
this.strDireccion = strDireccion;
}
//constructor por defecto//
/*public cLsEstudiantes() {
this.cedulas = 0;
this.strNombres = null;
this.strApellidos = null;
this.strDireccion = null;
}*/
//constructor por parametero //
public cLsEstudiantes(int cedulas, String strNombres, String strApellidos,
String strDireccion) {
this.cedulas = cedulas;
this.strNombres = strNombres;
this.strApellidos = strApellidos;
2. this.strDireccion = strDireccion;
}
//crear Metodos de la clase //
public void insertarEstudiante (Object estudiante){
}
public String mostranEnConsola (String cadena){
return "";
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package proyectoclase;
import proyectoclase.cLsEstudiantes;
/**
*
* @author salaj201
*/
public class ProyectoClase {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
//instancia de la clase
// cLsEstudiantes objEstudiantes=new cLsEstudiantes ();
cLsEstudiantes ObjEstudiantes = new cLsEstudiantes(123951436,
"sebastian", "pinzon", "Calle 16");
}
}