Question: Use C Write the class definition (header) that has the following properties: The name of the class is SecretType The class has four member variables
Write the class definition (header) that has the following properties: The name of the class is SecretType The class has four member variables (attributes) as follows: name is a string type age and weight are of type integer height is of type double The class has the following methods: print -- outputs the data stored in the member variables with appropriate titles. Getters/Setters for all of the member variables Constructor using default parameters where name will have default value of "", age, weight, and height will have a default value of zero. DO NOT DEFINE/WRITE ANY METHODS WITHIN YOUR CLASS DEFINITION
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
