Contenu du cours
Java Étendu
Java Étendu
Défi : Obtenir des Informations sur l'Objet
Tâche
Swipe to start coding
- Définissez le type pour chaque champ dans la classe
Cat
. - Implémentez la méthode
infoCat()
pour afficher les informations du chat, y compris sonname
,age
etcolor
. - Appelez la méthode
infoCat()
pour chaque objetCat
afin d'afficher les informations du chat.
Solution
solution
Tout était clair ?
Merci pour vos commentaires !
Section 4. Chapitre 5
Défi : Obtenir des Informations sur l'Objet
Tâche
Swipe to start coding
- Définissez le type pour chaque champ dans la classe
Cat
. - Implémentez la méthode
infoCat()
pour afficher les informations du chat, y compris sonname
,age
etcolor
. - Appelez la méthode
infoCat()
pour chaque objetCat
afin d'afficher les informations du chat.
Solution
solution
Tout était clair ?
Merci pour vos commentaires !
Section 4. Chapitre 5