Course Content
Java Extended
Java Extended
Challenge: Get Information About the Object
Task
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.
Solution
solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 5
Challenge: Get Information About the Object
Task
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.
Solution
solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 5
Switch to desktop for real-world practiceContinue from where you are using one of the options below