Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4411 Views
- 1 Answers
1 Answers
-
-
- 21 Jul
- 0 Comment
-
- Interview questions for C++ language
- How can I practice the questions of C Plus Plus Programming? Where to find study material?
- What are the five basic elements of a C++ program?
- What are the basic concepts of oops in C++?
- Where can I find study materials for learning c++?
- What are the topics in C++? Explain your answer
- Which is the best software for C++ programming?
- Early bindingand Late binding in C++
- Reallocation of pointers in C++
- Difference between class and struct?
Practice Mock Test
c plus plus programming
you can access the private members within the class only. private members are hidden from the other classes. and Protected members are only accessible by that class as well as its subclasses only. and public members are accessible by all the classes.