Member access specifiers (public and private) can appear:
a. In any order and multiple times.
b. In any order (public first or private first) but not multiple times.
c. In any order and multiple times, if they have brackets separating each type.
d. Outside a class definition.
a. In any order and multiple times.
Computer Science & Information Technology
You might also like to view...
Javadoc comments begin with ____ and end with*/.
A. // B. /** C. */ D. **/
Computer Science & Information Technology
How many public members does an object of class D have?
Consider the class inheritance. ``` class B { public: B(); B(int nn); void f(); void g(); private: int n; }; class D: public B { public: D(int nn, double dd); void h(); private: double d; }; ``` a) 0 b) 1 c) 2 d) 3 e) 4 f) 5
Computer Science & Information Technology