Accessing private and protected members
How can we access protected and private members of a class in C++?
- 4412 दृश्य
- 1 उत्तर
1 उत्तर
-
-
- 21 जुलाई
- 0 टिप्पणी
-
- Which is the best software for C++ programming?
- Most suitable way for returning the logical errors
- What are the five basic elements of a C++ program?
- What is difference between C and C++ ?
- Where to find internship for C plus plus ?
- What is C++? How one can go for C++ in engineering?
- Early bindingand Late binding in C++
- Where can I find study materials for learning c++?
- Can someone please update me with the important exam dates of C Plus Plus Programming Exam?
- how c plus plus is different than java ?
मॉक परीक्षण अभ्यास के लिए
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.