Skip to content
Snippets Groups Projects
Commit 2a1b2006 authored by JotaJota96's avatar JotaJota96
Browse files

DataType de Usuario hecho

parent 574583e3
No related branches found
No related tags found
No related merge requests found
package Logica.DataType;
import java.util.Date;
public class DtUsuario extends DtPersona{
private String nickname;
private String correo;
private Date fechaNacimiento;
private String imagen;
private int cantSeguidores;
public DtUsuario(String nickname, String correo, Date fechaNacimiento, String imagen, int cantSeguidores) {
this.nickname = nickname;
this.correo = correo;
this.fechaNacimiento = fechaNacimiento;
this.imagen = imagen;
this.cantSeguidores = cantSeguidores;
}
public String getNickname() {
return nickname;
}
public String getCorreo() {
return correo;
}
public Date getFechaNacimiento() {
return fechaNacimiento;
}
public String getImagen() {
return imagen;
}
public int getCantSeguidores() {
return cantSeguidores;
}
}
package Logica;
import java.util.Date;
public class main {
public static void main(String[] args) {
System.out.println("Hola mundo");
Date d = new Date(2019-1900, 8 -1, 20);
System.out.println(d);
// escriba aqui sus pruebas
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment