InterviewSolution
Saved Bookmarks
| 1. |
If a class doesn’t have public members, then________(a) None of its members will be able to get inherited(b) None of its instance creation will be allowed(c) None of its member function can be called outside the class(d) None of its data members will be able to get initial valueI had been asked this question at a job interview.My doubt stems from Public Access Specifier in division Access Specifiers of Object Oriented Programming |
|
Answer» The correct option is (c) None of its member function can be called outside the class |
|