Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
C++ Tutorial
→
C++ Interview Questions in C++ Tutorial
→
What Is Public, Protected, Private In C++?
1.
What Is Public, Protected, Private In C++?
Answer»
PUBLIC
, protected and private are three access specifiers in C++.
Public data members and member functions are accessible outside the class.
Protected data members and member functions are only
AVAILABLE
to derived classes.
Private data members and member functions can't be accessed outside the class. However there is an exception can be using
FRIEND
classes.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
Write A Code Snippet To Display An Integer In A Binary Format?
Explain The Concept Of Dynamic Allocation Of Memory?
Write About The Local Class And Mention Its Use?
Write About A Nested Class And Mention Its Use?
Define Pure Virtual Function?
How Does List R; Differs From List R();?
Explain How Would You Handle A Situation Where You Cannot Call The Destructor Of A Local Explicitly?
What Is The Sequence Of Destruction Of Local Objects?
Define A Conversion Constructor?
Is It Possible To Pass An Object Of The Same Class In Place Of Object Reference To The Copy Constructor?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies