Question: In this Lab activity, you are going to implement a class definition with the following properties. Before you start coding please review the concepts of

In this Lab activity, you are going to implement a class definition with the following properties. Before you start coding please review the concepts of class, constructor, member function and member variable.
a) The name of the class is secrettype.
The class secretType has four member variables: name of type string, age and weight of type int, and height of type double.
The class secrettype has the following member functions:
print-Outputs the data stored in the instance variables with the appropriate titles
setName-Function to set the name
setage-Function to set the age
setweight-Function to set the weight
setHeight-Function to set the height
getName-Value-returning function to return the name
getAge-Value-returning function to return the age
 In this Lab activity, you are going to implement a class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!