Question: in c++ please just need part C 3. Find the syntax errors in the definitions of the following classes: class A public: void print ()
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
