Contenido del Curso
Java Extended
Java Extended
Parrot Information Display Challenge
Tarea
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.
¡Gracias por tus comentarios!
Parrot Information Display Challenge
Tarea
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.
¡Gracias por tus comentarios!
Parrot Information Display Challenge
Tarea
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.
¡Gracias por tus comentarios!
Tarea
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.