what is the difference between containership and inheritence?
Answer / sandeep choudhary
inheritance is the ability for a class to inherit of
properties and the behavior from a parent class by extending it.
while containership is the ability of a class to contain the
another objects as member data.
if a class is extended, it inherits all the public and
protected properties and the behaviors and those behavior
may be overridden by the sub class.but if a class is
contained in another, container class does not have the
ability to add and modify of contained.
| Is This Answer Correct ? | 47 Yes | 2 No |
what is the use of classes in c++;
What is polymorphism what is it for and how is it used?
What is encapsulation in simple terms?
Which is not an object oriented programming language?
Precompilation ?
How to Increment the value of the empid E001 for each and every employee by using the programe?
why oops need in programming
what is object oriented programming and procedure oriented programming?
what is the realstic modeling?
write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Write on signed and unsigned integers and give three (3) examples each