What is multiple inheritance? Give Example
Answer Posted / palsaniya sadikhasan, meta.
Sorry! Following example is the Multilevel inheritance.
which Post by me.
a class is derived from an existing class in multiple level.
e.g.
class abc
{
int a;
public:
void getdata();
};
class xyz public:abc
{
int b;
public:
void getinput();
}
class pqr public:xyz
{
int c;
public:
void show();
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is abstraction in oop with example?
What is the difference between a constructor and a destructor?
Why do while loop is used?
What is constructor in oop?
What is encapsulation and abstraction? How are they implemented in C++?
What exactly is polymorphism?
Why do pointers exist?
What are properties in oop?
explain sub-type and sub class? atleast u have differ it into 4 points?
Give two or more real cenario of virtual function and vertual object
What is overloading in oops?
Why is polymorphism used?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Plese get me a perfect C++ program for railway/airway reservation with all details.
Which language is pure oop?