What is the difference between public, private, protected
inheritance?
Answer Posted / dee
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 ? | 170 Yes | 48 No |
Post New Answer View All Answers
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Write syntax to define friend functions in C++.
Explain what you mean by a pointer.
How many ways can a variable be initialized into in C++?
Is c++ high level programming language?
Difference between strdup and strcpy?
What is fixed in c++?
What is the prototype of printf function?
What is the sequence of destruction of local objects?
Explain the difference between static and dynamic binding of functions?
How to declare a pointer to an array of integers?
Why do we need templates?
What is time h in c++?
What is the use of endl?
State the difference between delete and delete[].