public class Objet
extends Object
- Author:
- Dominique Bouthinon
gestion d'un objet caracterise par un nom et un poids
-
Constructor Summary
Constructors
initialise l'Objet courant avec unNom et unPoids
-
Method Summary
retourne le nom de l'Objet coura ;nt
int
retourne le poids de l'Objet courant
retourne le String decrivant l'Objet courant
-
Constructor Details
-
Objet
public Objet(String unNom,
int unPoids)
initialise l'Objet courant avec unNom et unPoids
-
Method Details
-
getPoids
public int getPoids()
retourne le poids de l'Objet courant
-
getNom
retourne le nom de l'Objet coura ;nt
-
toString
retourne le String decrivant l'Objet courant
- Overrides:
toString
in class Object