Programming Project 7.8 required rewriting the solution to Programming Project 4.10 with inheritance. Redo or do Programming Project 7.8, but instead define the Pet class as an abstract class. The acepromazine() and carprofen() methods should be defined as abstract methods.
In your main method, define an array of type Pet and add two instances of cats and two instances of dogs to the array. Iterate through the array and output how much carprofen and acepromazine each pet would require.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.