Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started