Challenge: Get Information About the Object
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 3.57
Challenge: Get Information About the Object
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
single