InterviewSolution
Saved Bookmarks
| 1. |
How access specifiers in Class helps in Abstraction?(a) They does not helps in any way(b) They allows us to show only required things to outer world(c) They help in keeping things together(d) Abstraction concept is not used in classesI got this question during a job interview.The doubt is from OOPs Concept in chapter Basics Concepts of C++ of C++ |
|
Answer» CORRECT answer is (b) They allows us to SHOW only required things to outer world To explain: Abstraction is the concept of hiding things from the outer world and showing only the required things to the world, which is where ACCESS specifiers private, PROTECTED and PUBLIC helps in keeping our knowledge hidden from the world. |
|