Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4720 Views
- 1 Answers
1 Answers
-
-
- 21 Jul
- 0 Comment
-
- What is C++ programming language used for?
- What are the five basic elements of a C++ program?
- Which software is used for C and C++?
- Where to find internship for C plus plus ?
- Reallocation of pointers in C++
- How many times will this loop execute?
- What are tips for someone whose learning C++?
- Most suitable way for returning the logical errors
- Where can I find study materials for learning c++?
- How can I practice the questions of C Plus Plus Programming? Where to find study material?
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.