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
Which type does string inherit from?
write a programe to calculate the simple intrest and compund intrest using by function overlading
What is overriding in oops?
What is overloading in oops?
Is data hiding and abstraction same?
What is the advantage of oop over procedural language?
What is a function in oop?
What is the point of polymorphism?
What is oops?what is its use in software engineering?
What is data binding in oops?
What is polymorphism and types?
Why is destructor used?
What are the benefits of polymorphism?
Explain the advantages of inheritance.
to find out the minimum of two integer number of two different classes using friend function