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 Loop function? What are different types of Loops?
Explain deep copy?
Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..
What is a storage class? Mention the storage classes in c++.
Please explain the reference variable in c++?
Give example of a pure virtual function in c++?
What is the use of vtable?
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
What are inline functions? What is the syntax for defining an inline function?
What is the return value of the insertion operator?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Explain data encapsulation?
What is #include c++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What is endl?