Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
in c++ please just need part C 3. Find the syntax errors in the definitions of the following classes: class A public: void print ()
in c++ please just need part C 3. Find the syntax errors in the definitions of the following classes: class A public: void print () int sum(); AA(); int AA (int, int) private: int x; inty: class BB int one int two public: bool equalo: print(); BB (int, int); class CC public void set(int, int); void print ; CC ( CC (int, int): bool cc (int, int): private: int Vi Part Implement a class definition with the fallowing properties: a) The name of the class is secretType. b) The class secretType has four instance variables: name of type string, age and weight of type int, and height of type double. c) The class secretType has the following member functions: print-Outputs the data stored in the instance variables with the appropriate titles . setName-sets the name setAge-sets the age setHeight-sets the weight setHeight-sets the height get Nane returns the name getige-returns the age getHeight-returns the weight getHeight-returns the height Default constructor-Sets name to the empty string and age, weight, and height to 0 . Constructor with parameters-Sets the values of the instance variables to the values specified by the user
in c++ please
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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