What is multiple inheritance ?

Answer Posted / funny guy

Multiple Inheritance is a feature of OOPS where the derived
class can extend features from more than one class.

That means if we have class A and class B then class C can
extend class A and class B.

Having said that from Java point of view this feature is not
supported as it may result in Diamond Problem.

C++ does support this features.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the advantages of inheritance.

731


What is meant by multiple inheritance?

805


What is inheritance write a program to show use of inheritance?

686


What is a class and object?

662


Can abstract class have normal methods?

668






What is the purpose of polymorphism?

740


What is encapsulation oop?

644


#include #include #include #include void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.

3336


explain sub-type and sub class? atleast u have differ it into 4 points?

1905


What is abstraction encapsulation?

727


what are the ways in which a constructors can be called?

1654


What are different oops concepts?

645


What is basic concept of oop?

768


Why is abstraction needed?

624


What is polymorphism in oops?

615