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 difference between encapsulation and polymorphism?
wht is ditch
Program to check whether a word starts with a capital letter or not.
What is byval and byref? What are differences between them?
What is the significance of classes in oop?
What is the real life example of polymorphism?
What is persistence in oop?
Write a program to find out the number of palindromes in a sentence.
What is the real time example of inheritance?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
all about pointers
can main method be overloaded...??? How..????