Conteúdo do Curso
Java Extended
Java Extended
Parrot Information Display Challenge
Tarefa
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.
Obrigado pelo seu feedback!
Parrot Information Display Challenge
Tarefa
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.
Obrigado pelo seu feedback!
Parrot Information Display Challenge
Tarefa
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.
Obrigado pelo seu feedback!
Tarefa
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.