Challenge: Get Information About the Object
Task
Swipe to start coding
- Define the type for each field in the
Catclass. - Implement the
infoCat()method to display the catβs information, including itsname,age, andcolor. - Call the
infoCat()method for eachCatobject to display the cat information.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 5
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.63
Challenge: Get Information About the Object
Swipe to show menu
Task
Swipe to start coding
- Define the type for each field in the
Catclass. - Implement the
infoCat()method to display the catβs information, including itsname,age, andcolor. - Call the
infoCat()method for eachCatobject to display the cat information.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 4. ChapterΒ 5
single