opBancaires
Class Client
java.lang.Object
opBancaires.Client
public class Client
- extends java.lang.Object
Constructor Summary |
Client(java.lang.String nom,
Attache attache)
Constructeur. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Client
public Client(java.lang.String nom,
Attache attache)
- Constructeur.
- Parameters:
nom
- attache
-
getNumId
public int getNumId()
- Returns:
- the numId
setNumId
public void setNumId(int numId)
- Parameters:
numId
- the numId to set
getNom
public java.lang.String getNom()
- Returns:
- the nom
setNom
public void setNom(java.lang.String nom)
- Parameters:
nom
- the nom to set
getComptes
public java.util.ArrayList<CompteAbstract> getComptes()
- Returns:
- the comptes
getAttache
public Attache getAttache()
- Returns:
- Attache - Returns the attache.
setAttache
public void setAttache(Attache attache)
- Parameters:
attache
- Attache - The attache to set.
getLastId
public static int getLastId()
- Returns:
- int - Returns the lastId.
addCompte
public void addCompte(CompteAbstract compte)
- Ajoute un compte dont le client est titulaire.
- Parameters:
compte
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object