Contenido del Curso
Java Extended
Java Extended
Challenge: Get Information About the Object
Swipe to show code editor
- Define the type for each field in the
Cat
class. - Implement the
infoCat()
method to display the cat’s information, including itsname
,age
, andcolor
. - Call the
infoCat()
method for eachCat
object to display the cat information.
¡Gracias por tus comentarios!
Challenge: Get Information About the Object
Swipe to show code editor
- Define the type for each field in the
Cat
class. - Implement the
infoCat()
method to display the cat’s information, including itsname
,age
, andcolor
. - Call the
infoCat()
method for eachCat
object to display the cat information.
¡Gracias por tus comentarios!
Challenge: Get Information About the Object
Swipe to show code editor
- Define the type for each field in the
Cat
class. - Implement the
infoCat()
method to display the cat’s information, including itsname
,age
, andcolor
. - Call the
infoCat()
method for eachCat
object to display the cat information.
¡Gracias por tus comentarios!
Swipe to show code editor
- Define the type for each field in the
Cat
class. - Implement the
infoCat()
method to display the cat’s information, including itsname
,age
, andcolor
. - Call the
infoCat()
method for eachCat
object to display the cat information.