What are the differences between public, private, and
protected access?
Answer Posted / abhay
public-->inherite the protected members as preotected in
drived class and pubic members wiull be public in derived
class
protected--->pubic and protecated members of the base class
will become protected in derived class
Private-->pubilc and proteacted members will become private
in derived class
Is This Answer Correct ? | 14 Yes | 7 No |
Post New Answer View All Answers
What is ostream in c++?
What is the difference between set and map in c++?
Explain the problem with overriding functions
What is heap sort in c++?
Why do we need templates?
How a new element can be added or pushed in a stack?
What is difference between class and structure in c++?
What are stacks? Give an example where they are useful.
Can turbo c++ run c program?
What are the advantages of inheritance in c++?
Will the following program execute?
Which coding certification is best?
What flag means?
What is diamond problem in c++?
What is the type of 'this' pointer?