What is inheritance?
Answers were Sorted based on User's Feedback
Answer / sri
Inheritance is a type of relationship among classes, wherein
one class shares the structure or behaviour defined in one
(single inheritance) or more (multiple inheritance) other
classes. Inheritance defines a "kind of" hierarchy among
classes in which a sub class inherits from one or more
super-classes; a sub-class typically augments or redefines
the existing structure and behaviour of its super-classes.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / s.nareshkumar
inheritance is the process of acquiring the one class properties to another class its called 'inheritance'
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / senthilkumar
one object acquires the properties of the another object.
a class is existing the base class.
a class is derived from base class.
subclass access the function and data of the base class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / loga
Inheritance relationship among classes, where we can access
the base class variable and methods in the dervied class.
It has various type has multiple,multilevel,hybrid...
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / guest
inheritance means deriving new class from base are derived class
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / krishna kumar.e
It is used to division for sub subclassess.Abstractclassess
are not allowed in inheritance because it has no body.
| Is This Answer Correct ? | 0 Yes | 6 No |
What is a ternary operator?
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
Difference Between Attribute and Association.
Is class an Object? Is object a class?
3 Answers InfoAxon Technologies, Protech,
What is Polymorphism?
7 Answers MindCracker, Protech, TCS,
State about java and its relation to object oriented programming?
Where shall I go for Package Diagram?
Suppose a class acts an Actor in the problem domain, how to represent it in the static model?
Comment: C++ "includes" behavior and java "imports"
What are different ways to create string object?
How to use CRC Cards for Class Design?
Define Destructor?