Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4721 दृश्य
- 1 उत्तर
1 उत्तर
-
-
- 21 जुलाई
- 0 टिप्पणी
-
- Where to find internship for C plus plus ?
- Is Python better than C++? Explain your answer
- Early bindingand Late binding in C++
- Can someone please update me with the important exam dates of C Plus Plus Programming Exam?
- What are tips for someone whose learning C++?
- Reallocation of pointers in C++
- Which software is used for C and C++?
- how c plus plus is different than java ?
- What is difference between C and C++ ?
- How many times will this loop execute?
मॉक परीक्षण अभ्यास के लिए
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.