What is the difference between public, private, protected
inheritance?
Answer Posted / priya
public: class members are access from the outside the class
private: class members can access only within the class
protected:class members can access inside the same package
| Is This Answer Correct ? | 104 Yes | 51 No |
Post New Answer View All Answers
What is the average salary of a c++ programmer?
Explain Text Manipulation Routines?
Explain shallow copy?
If I is an integer variable, which is faster ++i or i++?
Is c++ the most powerful language?
What is type of 'this' pointer?
Can member functions be private?
Where Malloc(), Calloc(), and realloc() does get memory?
What is flush () in c++?
What problems might the following macro bring to the application?
What is the C-style character string?
Difference between pointer to constant vs. Pointer constant
Are strings mutable in c++?
What is enum class in c++?
What would happen on forgetting [], while deallocating an array through new?