What is Inheritance, Multiple Inheritance, Shared and
Repeatable Inheritance?
Answer Posted / vidhya alphonse
Inheritence is defined as the mechanism of deriving a new
class from an already existing class.The class from which
new class derived is called parent or bae class and the
derived one is called derived class.The new derived class
will have the characteristics of its own and the base class.
The main purpose of using inhertence concept is that
nothing but the reusability of code.Muliple inheritence
means deriving a new class from one or more base class.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What are two types of polymorphism?
Can bst contain duplicates?
What is byval and byref? What are differences between them?
What do you mean by Encapsulation?
Why multiple inheritance is not allowed?
Why we use classes in oop?
Why do we use polymorphism?
Give two or more real cenario of virtual function and vertual object
write a program to find 2 power of a 5digit number with out using big int and exponent ?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is the renewal class?
What is meant by oops concept?
State what is encapsulation and friend function?
What is encapsulation c#?
What are the benefits of interface?