Question: 1-1. Define and implement a class named meerkat that has the following constructors and behaviours /I no nane or age is required to create a
1-1. Define and implement a class named meerkat that has the following constructors and behaviours /I no nane or age is required to create a neerkat neerket ) vold sethame(string meerliane): change the meerkat's nane string getName) vold setage (int neerdge) int getage) // change the meerkat's age Your main program should create four meerkat objects and set and display their details (note that this means the main program should use the object behaviours to get and output the object state. The object behaviours should return the appropriate values and should NOT use cout).Your main program should demonstrate that the name and age information is changed. This class will also be used in problem 2-1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
