Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Parrot Information Display Challenge | 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

bookParrot Information Display Challenge

Task

There is a class called Parrot that already has all the fields and a constructor defined. In the main method, three different parrots are created, and then I attempt to print each of them on the screen. However, it only displays the hash code and the class name. Your task is to write a toString() method that will display all the information about the parrot.

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 9
toggle bottom row

bookParrot Information Display Challenge

Task

There is a class called Parrot that already has all the fields and a constructor defined. In the main method, three different parrots are created, and then I attempt to print each of them on the screen. However, it only displays the hash code and the class name. Your task is to write a toString() method that will display all the information about the parrot.

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 9
toggle bottom row

bookParrot Information Display Challenge

Task

There is a class called Parrot that already has all the fields and a constructor defined. In the main method, three different parrots are created, and then I attempt to print each of them on the screen. However, it only displays the hash code and the class name. Your task is to write a toString() method that will display all the information about the parrot.

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!

Task

There is a class called Parrot that already has all the fields and a constructor defined. In the main method, three different parrots are created, and then I attempt to print each of them on the screen. However, it only displays the hash code and the class name. Your task is to write a toString() method that will display all the information about the parrot.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 4. Chapter 9
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt