Challenge: Get Information About the Object
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 5
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 3.57
Challenge: Get Information About the Object
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 5
single