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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!