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 |
Why do we need oop?
#include <iostream> using namespace std; int main() { int a = 2; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][c[1][4]]; }
WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP
What is abstraction in oops?
What is a null tree?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What polymorphism means?
What does no cap mean?
What is class and object in oops?
what is code for call by value and call by reference?
What is the oops and benefits of oops programming?
What does I oop mean?