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:
printOutputs the data stored in the instance variables with the appropriate titles
setNameFunction to set the name
setageFunction to set the age
setweightFunction to set the weight
setHeightFunction to set the height
getNameValuereturning function to return the name
getAgeValuereturning function to return the age
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
