Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4590 Views
- 1 Answers
1 Answers
-
-
- 21 Jul
- 0 Comment
-
- Is Python better than C++? Explain your answer
- Early bindingand Late binding in C++
- Which software is used for C and C++?
- Difference between class and struct?
- What are the five basic elements of a C++ program?
- how c plus plus is different than java ?
- How many times will this loop execute?
- What are tips for someone whose learning C++?
- Interview questions for C++ language
- Online test for C plus plus language
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.