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

Course Content

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

Task
test

Swipe to show code editor

  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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 5
toggle bottom row

book
Challenge: Get Information About the Object

Task
test

Swipe to show code editor

  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.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt