Question: (A) The Smartphone class should have at least 5 data members. For each data member, what is the name? what is the access specifier (public
(A) The Smartphone class should have at least 5 data members. For each data member, what is the name? what is the access specifier (public or private)? Justify your answer should we have a getter or setter or both or none for this member? Justify your answer data member 1 data member 2 data member 3 data member 4 data member 5 (B) The Smartphone class should have at least 2 non-getter-non-setter member functions. For each non- getter-non-setter, what is the function's name? what is the function's return type? what is the function's parameter list? briefly describe the function (i.e. what does the function do?) non-getter-non-setter member function 1 non-getter-non-setter member function 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
