Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Get Information About the Object | Classes
Java Extended
course content

Kursusindhold

Java Extended

Java Extended

1. Deep Java Structure
2. Methods
3. String Advanced
4. Classes
5. Classes Advanced

book
Challenge: Get Information About the Object

Opgave

Swipe to start coding

  1. Define the type for each field in the Cat class.
  2. Implement the infoCat() method to display the cat’s information, including its name, age, and color.
  3. Call the infoCat() method for each Cat object to display the cat information.

Løsning

java

solution

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 5
toggle bottom row

book
Challenge: Get Information About the Object

Opgave

Swipe to start coding

  1. Define the type for each field in the Cat class.
  2. Implement the infoCat() method to display the cat’s information, including its name, age, and color.
  3. Call the infoCat() method for each Cat object to display the cat information.

Løsning

java

solution

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 4. Kapitel 5
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt