Kursinnhold
Java Extended
Java Extended
Challenge: Get Information About the Object
Oppgave
Swipe to start coding
- 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.
Løsning
solution
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 5
Challenge: Get Information About the Object
Oppgave
Swipe to start coding
- 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.
Løsning
solution
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 5