Develop a class in c which models a person and include some


Develop a class in C++ which models a person and include some following criteria:

  • Include private attributes such as name, address, height, weight, and age.
  • Provide an accessed function to the objects of this class (Make public functions that return or change the values of the attributes).
  • Make a constructor that initializes the values and adestructorif necessary.
  • The default argument for age used by the constructor should be 0.
  • Usedynamic memory allocation for the name attribute.
  • Provide a copy constructor.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Develop a class in c which models a person and include some
Reference No:- TGS02868534

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)