Design a personType class with the followingattributes (variables), and behaviors (methods/functions).
Private
- Variables
- string fName;
- string lName;
- string address:
- double height (inches)
- string DOB
- char: gender
Public
- functions
- setters for all of your data members (variables)
- getters for all of your data members
- print. This function will print “All of the persons’information”.
- equals which takes another personType objectas a parameter and compares all its members. Returns true isidentical.
Create a driver program that creates 5 different people. Aftercreating the 5 different people, neatly print them.
For this assignment, you will be dynamically creating an arrayof personType‘s from our previous assignments. For now,this will only be able to deal with the base class and not anyderived classes.
1.
PayPal Gateway not configured
PayPal Gateway not configured