What is Inheritance, Multiple Inheritance, Shared and
Repeatable Inheritance?
Answers were Sorted based on User's Feedback
The mechanism of deriving a new class from an old one is
called inheritance.the old ones is called the base class
and the new one is called the derived or sub class.
MULTIPLE INHERIENCE:one depived class from many base class
is reffered to MI.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / srinivas
Inheritence is the mechanisum by which one obj aquiers the
properties of another object .By which we can achhive the
hirearchial classiffication.
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
Answer / himanshu
Inheritance in java is actually using existing classes or interfaces to make our one useful class or interface..it's main purpose is code reuse..a major concept in Object oriented programming!!
Is This Answer Correct ? | 2 Yes | 0 No |
where is memory for struct allocated? where is memory for class-object allocated? I replied for struct in stack and for class-object in heap. THen he asked if class has struct member variable what happens.class on heap and what about struct in that class? couldnt ans :( :-?
who is the founder of c++?
How do you achieve runtime polymorphism?
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
what is new modifier in C#
What is the advantage of oop over procedural language?
Tell us about yourself.
47 Answers ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,
what are the realtime excercises in C++?
what is an qt4 interface?
How do you make derived class as an abstract class?
What is abstraction in oops?
what are the ways in which a constructors can be called?