Challenge: Get Information About the Object
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 3.57
Challenge: Get Information About the Object
Svep för att visa menyn
Uppgift
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 allt tydligt?
Tack för dina kommentarer!
Avsnitt 1. Kapitel 5
single