You will creating two .java files and turning in a video recording of your explanation of each and the running of the tester.1) public class Animal2) public class AnimalTesterAnimal Class:instance...





You will creating two .java files and turning in a video recording of your explanation of each and the running of the tester.




1) public class Animal




2) public class AnimalTester




Animal Class:




instance variables: animal (string), age(int), gender (M/F/U) character, name (string), neutered (boolean);




constructors:




public Animal(string name, string animalType, int age, char gender, boolean neutered)
public Animal() ("Unknown", "Unknown", 0, 'U', false) <-- default="" values="" for="" empty="">




accessor and mutator methods you will need to create:




String getName(), String getAnimalType(), int getAge(), char

getGender(), void birthday() <-- adds="" one="" to="" birthday="" value,="">

toString();








Class #2: Animal Tester - Have 3 animals created and outputted. One

dog, one cat, one unknown Someone should have a birthday. BE SURE to

INPUT all the data except the boolean value just assign it true or false

in the () when you create the object.




Oct 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here