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 the difference between inheritance and polymorphism?
Please send ford technologies placement paper 2 my mail id
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is pure oop?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
Where is pseudocode used?
What is the oops and benefits of oops programming?
Why we use classes in oop?
What is byval and byref? What are differences between them?
What does oop mean in snapchat?
What is the importance of oop?
What are objects in oop?
What is overloading and its types?
What is meant by oops concept?