Define a class Person containing the name of the person, names of parents of the person, gender, age, and an array containing the list of interests as the data members. Provide functions FindFather(),...


Define a class Person containing the name of the person, names of parents of the person, gender, age, and an array containing the list of interests as the data members. Provide functions FindFather(), FindMother(), FindUncle(), and FindAunty(), all of which return the objects of the Person class. Provide access using function pointers for all these functions.


2. Program 5.8 uses static variables to count the number of objects alive at the moment. We had a problem of decrementing the count when a user departs. Remove that problem writing a destructor for the class.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here