What do you mean by public, private, protected and friendly?
Answer Posted / achal ubbott
public means access to the object of the class, created in
outside world.
private and protected are almost the same, except the
difference that protected members are inheritable and thus
can be used by derived class. These can be accessed only by
the public function members of the class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the two different types of polymorphism?
What is the diamond problem in inheritance?
What are the benefits of oop?
Which method cannot be overridden?
what type of questions
What is class encapsulation?
what is the drawback of classical methods in oops?
How Do you Code Composition and Aggregation in C++ ?
What are the important components of cohesion?
What do you mean by overloading?
Can main method override?
how to get the oracle certification? send me the answer
Why do we need oop?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What does oop mean in snapchat?