What are the differences between public, private, and
protected access?
Answer Posted / prashanth c patel
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 ? | 21 Yes | 12 No |
Post New Answer View All Answers
How would you implement a substr() function that extracts a sub string from a given string?
How do I use arrays in c++?
Keyword mean in declaration?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Explain the register storage classes in c++.
What is the auto keyword good for in c++?
Array base access faster or pointer base access is faster?
What is the main use of c++?
Define the operators that can be used with a pointer.
What are separators in c++?
What is meant by iomanip in c++?
How would perform Pattern Matching in C++?
Explain the difference between new() and malloc() in c++?
What is c++ used for in games?
Describe the process of creation and destruction of a derived class object?