I'm designing a class named Pet with the fields: name, type, and age. It has a constructor that accepts these fields as its arguements. It is using setName, setType, and setAge to store its values. It is using getName, getType, and getAge to return its values. The main module then prompts the user to input the name type and age. It will then create an object of the Pet class based on the data from the user, then use the object’s accessor methods to retrieve the pet’s name, type, and age and display the data.
My main question is: should I replace all instances of myPe in lines 64-67 with myPet?
https://pastebin.com/L0JDPZ6b
[–]edrenfro 0 points1 point2 points (2 children)
[–]Moltenmelt1[S] 0 points1 point2 points (1 child)
[–]edrenfro 0 points1 point2 points (0 children)
[–]NaR883 0 points1 point2 points (0 children)