Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4593 दृश्य
- 1 उत्तर
1 उत्तर
-
-
- 21 जुलाई
- 0 टिप्पणी
-
- What are the five basic elements of a C++ program?
- What are the basic concepts of oops in C++?
- What is C++ programming language used for?
- When we already have C language then why C++?
- Most suitable way for returning the logical errors
- How can I practice the questions of C Plus Plus Programming? Where to find study material?
- how c plus plus is different than java ?
- Where can I find study materials for learning c++?
- Difference between class and struct?
- Interview questions for C++ language
मॉक परीक्षण अभ्यास के लिए
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.