Answer to Question #13352 in C++ for Chad Dylan Cooper
(b) For the individual data types declared in part (a), define a student named newStudent and initialize it with the following data:
Student name : Tan Pei Pei
Student ID : 1111111
Course : Diploma in IT
Year enrolled: 2011
(c) Consider the following declarations:
void print() const;
Answer the following questions:
(i) How many members does class testClass have?
(ii) How many private member does class testClass have?
(iii) How many constructors does class testClass have?
(iv) Write the definition of the member function func so that x is set to 5 and y is set to 50.5.
(v) Write the C++ statement that declare an object e1 of type testClass, and initializes
Submit it with all requirements as an assignment to our control panel and we'll assist you.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!