Class Objet


public class Objet extends Object
Author:
Dominique Bouthinon gestion d'un objet caracterise par un nom et un poids
  • Constructor Summary

    Constructors
    Constructor
    Description
    Objet(String unNom, int unPoids)
    initialise l'Objet courant avec unNom et unPoids
  • Method Summary

    Modifier and Type
    Method
    Description
    retourne le nom de l'Objet coura ;nt
    int
    retourne le poids de l'Objet courant
    retourne le String decrivant l'Objet courant

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

      public String getNom()
      retourne le nom de l'Objet coura ;nt
    • toString

      public String toString()
      retourne le String decrivant l'Objet courant
      Overrides:
      toString in class Object