What are the differences between public, private, and
protected access?
Answer Posted / kalpana.y
Private is used for intialization of variables
eg:
int p,r;
public is used for function name
eg:
void display();
protected is used for void main()
eg:
void main()
class c;
Is This Answer Correct ? | 24 Yes | 86 No |
Post New Answer View All Answers
What are exceptions c++?
Explain virtual destructor?
what is the use of void main() in C++ language?
Incase of a function declaration, what is extern means?
Is c++ map a hash table?
Which of the following is evaluated first: a) && b) || c) !
What apps are written in c++?
daily Routine of father
What is the difference between equal to (==) and assignment operator (=)?
Is dev c++ free?
Mention the ways in which parameterized can be invoked.
What is the best c++ compiler?
Do vectors start at 0?
Do you know what is overriding?
How do I run a program in notepad ++?