Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4722 Views
- 1 Answers
1 Answers
-
-
- 21 Jul
- 0 Comment
-
- Which software is used for C and C++?
- Where can I find study materials for learning c++?
- What are tips for someone whose learning C++?
- Online test for C plus plus language
- What is C++? How one can go for C++ in engineering?
- Most suitable way for returning the logical errors
- What are the five basic elements of a C++ program?
- How many times will this loop execute?
- Where to find internship for C plus plus ?
- What are the topics in C++? Explain your answer
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.