(Solved) : Java Terminal Mac Speak Move Abstract Methods Defined Per Class Define Speak Move Instant Q37164930 . . .
JAVA. (terminal mac)speak() and move() are abstract methods defined in Per class.you should not define speak and move as an instant variable in thesubclasses.
chapter 13-Lab1-… x | a⑦ ⓤ 1__ / 2 Θ 49.3% CPS 2231 Computer Organization and Programming Chapter 13 lab 1 The xxx. Pet and xxx TestPet classes (xxx is your Kean email id) will be subrmitted for the assignment labeled Chap13Labl. – Worth 25 points It is due as written on the blackboard system The xxx Pet class A Pet has a: Name . Incude an instance variable Getters and setters for an instance variable . A toString method which returns a String containing the pet name . Abstract methods: speak() and move) The subclasses Write a dog, cat, snake subclasses with proper instant variables and methods Write a class xxx TestPet which will Create a dog, a snake, and a cat objects 1- Sample Output Pet Fido is a dog, weighing 45 pounds Fido says woof run Fido run Pet Sam is a snake, 30 inches long Sam says hiss slither Sam slither Pet hershey is e cat, with Long hair Hershey says Meow prance Hershey prance 2- Print just the weight of the Dog, the length of the Snake and the hair length of the Cat as shown below Fido weighs 45 pounds Sam has length 30 inches Hershey has Long hair 13-Lab1-… x Computer Organization and Programming Chapter 13 lab 1 CPS 2231 3- Store the objects in an Array of Pet objects and print the information below Pet D1 is a dog, weighing 55 pounds woof run Pet S1 is a snake, 30 inches long hiss slither Pet C1 is a cat, with Long hair meow prance Pet D2 is a dog, weighing 15 pounds woof run Pet C2 is a cat, with Short hair meow prance Show transcribed image text chapter 13-Lab1-… x | a⑦ ⓤ 1__ / 2 Θ 49.3% CPS 2231 Computer Organization and Programming Chapter 13 lab 1 The xxx. Pet and xxx TestPet classes (xxx is your Kean email id) will be subrmitted for the assignment labeled Chap13Labl. – Worth 25 points It is due as written on the blackboard system The xxx Pet class A Pet has a: Name . Incude an instance variable Getters and setters for an instance variable . A toString method which returns a String containing the pet name . Abstract methods: speak() and move) The subclasses Write a dog, cat, snake subclasses with proper instant variables and methods Write a class xxx TestPet which will Create a dog, a snake, and a cat objects 1- Sample Output Pet Fido is a dog, weighing 45 pounds Fido says woof run Fido run Pet Sam is a snake, 30 inches long Sam says hiss slither Sam slither Pet hershey is e cat, with Long hair Hershey says Meow prance Hershey prance 2- Print just the weight of the Dog, the length of the Snake and the hair length of the Cat as shown below Fido weighs 45 pounds Sam has length 30 inches Hershey has Long hair
13-Lab1-… x Computer Organization and Programming Chapter 13 lab 1 CPS 2231 3- Store the objects in an Array of Pet objects and print the information below Pet D1 is a dog, weighing 55 pounds woof run Pet S1 is a snake, 30 inches long hiss slither Pet C1 is a cat, with Long hair meow prance Pet D2 is a dog, weighing 15 pounds woof run Pet C2 is a cat, with Short hair meow prance
Expert Answer
Answer to JAVA. (terminal mac)speak() and move() are abstract methods defined in Per class. you should not define speak and move a…
OR