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
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
Why is c++ awesome?
What are the differences between java and c++?
Can create new c++ operators?
What is istream and ostream in c++?
Explain linked list using c++ with an example?
Which operator cannot overload?
What is lvalue?
what is C++ objects?
Explain selection sorting. Also write an example.
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
Which is better c++ or java?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Tell me what are static member functions?
Mention the ways in which parameterized can be invoked. Give an example of each.