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 does sksksk mean in text slang?
What is inheritance in simple words?
Can we override main method?
Contrast OOP and SOA. What are tenets of each?
1 Answers Siebel Systems, Wipro,
Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku
What are the important components of cohesion?
What is the concept of object oriented program?
who is the father of OPPS
What is polymorphism in oops?
What do you mean by inheritance?
What is for loop and its syntax?
Why static functions always uses static variables?