Well, thanks for the Jorgesys tutorial. I've read it and that pretty much I know. We go by parties; I make the class "Client", with private visibility and with the attributes and methods that it asks:
public class Cliente {
private int idCliente;
private String nombre;
private String direccion;
private String telefono;
public Cliente (){
}
public Cliente (int idCliente, String nombre, String direccion, String telefono){
this.idCliente = idCliente;
this.nombre = nombre;
this.direccion = direccion;
this.telefono = telefono;
}
public int getIdCliente(){
return idCliente;
}
public void setIdCliente(int idCliente){
this.idCliente = idCliente;
}
public String getNombre(){
return nombre;
}
public void setNombre(String nombre){
this.nombre = nombre;
}
public String getDireccion(){
return direccion;
}
public void setDireccion(String direccion){
this.direccion = direccion;
}
public String getTelefono(){
return telefono;
}
public void setTelefono(String telefono){
this.telefono = telefono;
}
I do the class "Account", which asks that it be abstract, protected visibility and with these attributes and methods:
public abstract class Cuenta {
protected int numeroDeCuenta;
protected double saldo;
protected xxxxx titular;
}
And there I am stuck, in those "xxxxx". Ask that the "owner" attribute be of the "Client" type, that is, of the client class. Any clue how to implement it from that class to the abstract?