Creación de Los Primeros metodos Obtener y Establecer con SUS Atributos
/ **
*
*author Cristiano
* /
public class Pelicula {
MoveID String;
Fecha String;
Cat Categoria;
pública Pelicula (String moveID, Fecha String, Categoria gato) {
this.moveID = moveID;
this.fecha = Fecha;
this.cat = cat;
}
public String getMoveID () {
volver moveID;
}
public String getFecha () {
Fecha de regreso;
}
pública Categoria getCat () {
volver gato;
}
public void setMoveID (String moveID) {
this.moveID = moveID;
}
public void setFecha (String Fecha) {
this.fecha = Fecha;
}
public void setCat (Categoria gato) {
this.cat = cat;
}
}
No hay comentarios:
Publicar un comentario