En este avance identificamos las clases que usaremos mientras para el proyecto, en esta clase llamada Usuarios es donde se registraran obviamente las personas que agreguemos, cuenta con una "id", "nombre", "apellido", "telefono", "celular", "correo" "direccion". ------------------------------------------------------------------------- public class Contacto { private Long id; private String nombre; private String direccion; private String telefono; private String email; private String sexo; public String getDireccion() { return direccion; } public void setDireccion(String direccion) { this.direccion = direccion; } public String getEmail() { return email; } public void setEmail(String email) { this.email = email; } public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } public String getSexo() { return sexo; } public void setSexo(String sexo) { this.sexo = sexo; } public String getTelefono() { return telefono; } public void setTelefono(String telefono) { this.telefono = telefono; } } ------------------------------------------------------------------------- En esta clase usaremos las Citas programadas, que contaran con tambien un "id", "el nombre del contacto", "fecha", "hora" y "evento". public class Cita { int id; Contacto contacto; String direccion; String fecha; String hora; String evento; public Cita() { } public String getevento() { return evento; } public void setevento(String evento) { this.evento = evento; } public Contacto getContacto() { return contacto; } public void setContacto(Contacto contacto) { this.contacto = contacto; } public String getFecha() { return fecha; } public void setFecha(String fecha) { this.fecha = fecha; } public String getHora() { return hora; } public void setHora(String hora) { this.hora = hora; } public int getId() { return id; } public void setId(int id) { this.id = id; } public String getDireccion() { return lugar; } public void setDireccion(String direccion) { this.direccion = direccion; } } ------------------------------------------------------------------------
martes, 15 de febrero de 2011
Avance de clases en el proyecto final
Suscribirse a:
Enviar comentarios (Atom)
No hay comentarios:
Publicar un comentario