what is single inheritance?
Answers were Sorted based on User's Feedback
Answer / saurav deep
WHEN A CLASS (CALLED DERIVED CLASS) IS BEING DERIVED BY A
SINGLE CLASS(CALLED BASE CLASS) IS CALLED SINGLE
INHERITANCE.......
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / yuvaraajaa
The derived class has only one base class its called a
single inheritance
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shanthan
which has one base class and one derived class. this inheritance is called single inheritance
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / abi
A COMMON FORM OF INHERITANCE
CLASS HAVE ONLY ONE BASE CLASS
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / abhilash
when the one class is derived the properties of another
class is known as single inhritance.child class derived the
properties of parent class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dom wadegu
is when a subclass is derived fully from one superclass.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / alameen
In "single inheritance," a common form of inheritance,
classes have only one base class. Consider the relationship
illustrated in the following figure.
Simple Single-Inheritance Graph
Note the progression from general to specific in the
figure. Another common attribute found in the design of
most class hierarchies is that the derived class has
a "kind of" relationship with the base class. In the
figure, a Book is a kind of a PrintedDocument, and a
PaperbackBook is a kind of a book.
One other item of note in the figure: Book is both a
derived class (from PrintedDocument) and a base class
| Is This Answer Correct ? | 8 Yes | 9 No |
Answer / rishika
it is the process of creating new classes from an existing base class
| Is This Answer Correct ? | 0 Yes | 1 No |
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,
can main method be overloaded...??? How..????
What is abstraction in oops with example?
Tell me the scenario,Where we can use interfaces or Abstract class.And What is the difference between interfaces and abstract class?
if u write a class do u write Assignment operator and copy constructor
Input: enter the value:1234 output: 1 2 3 4 write a program to get above output.....
4 Answers Bally Technologies, IBM, SoftSol,
//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }
What are generic functions and generic classes?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Write an operator overloading program to Overload ‘>’ operator so as to find greater among two instances of the class.
What is a linked list?
WAP to generate 2n+1 lines of the following pattern on the computer screen: