Course Solutions Uncategorized (Solved) : Design Persontype Class Following Attributes Variables Behaviors Methods Functions Privat Q36418572 . . . .

(Solved) : Design Persontype Class Following Attributes Variables Behaviors Methods Functions Privat Q36418572 . . . .

 

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.

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post