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 are the fields of vtable
Which is better struts or spring?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is R T T I ?
how to swap the variables without using temp and operators
What type of Job you are providing?
How to calculate the age from the date of birth by using the program?
sir i want to know which posting to apply since i am BE CSE.. also want to know what are the rounds there for my interview...Expecting for ur valuable answer....
What does and I oop mean in text?
What is abstraction oop?
Which method cannot be overridden?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?