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 different oops concepts?
How many human genes are polymorphic?
What does sksksk mean in text slang?
What is multilevel inheritance explain with example?
Can you name some types of inheritance?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is purpose of inheritance?
What is use of overloading?
what's the basic's in dot net
what is the 3 types of system development life cycle
What is the importance of oop?
What is abstraction in oop?
Why is destructor used?
Advantage and disadvantage of routing in telecom sector
State what is encapsulation and friend function?