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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here