Course Content
Java Extended
Java Extended
Cat Meowing Challenge
Task
Now your task is to do the opposite. In the main
method, there is already code for creating multiple objects of the Cat
class, initializing their fields, and calling a method. Your task is to write the Cat
class so that it meows when the meooow()
method is called. You can also create a translator from cat language to English, as was done in the example with the Dog
class. But that is optional.
Thanks for your feedback!
Cat Meowing Challenge
Task
Now your task is to do the opposite. In the main
method, there is already code for creating multiple objects of the Cat
class, initializing their fields, and calling a method. Your task is to write the Cat
class so that it meows when the meooow()
method is called. You can also create a translator from cat language to English, as was done in the example with the Dog
class. But that is optional.
Thanks for your feedback!
Cat Meowing Challenge
Task
Now your task is to do the opposite. In the main
method, there is already code for creating multiple objects of the Cat
class, initializing their fields, and calling a method. Your task is to write the Cat
class so that it meows when the meooow()
method is called. You can also create a translator from cat language to English, as was done in the example with the Dog
class. But that is optional.
Thanks for your feedback!
Task
Now your task is to do the opposite. In the main
method, there is already code for creating multiple objects of the Cat
class, initializing their fields, and calling a method. Your task is to write the Cat
class so that it meows when the meooow()
method is called. You can also create a translator from cat language to English, as was done in the example with the Dog
class. But that is optional.