What is multiple inheritance?

Answer Posted / jyoti lohani

the parent class behaviour & properties are define in child
class that's call inheritance. if child class inherit more
then one parent class that call multiple inheritance.

EX: class X
{
/* ---*/
}
class y
{
/*----*/
}
class z:x,y

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you achieve runtime polymorphism?

565


What is polymorphism and example?

585


what are the different types of qualifier in java?

1832


What are constructors in oop?

583


What is multilevel inheritance?

716






What is object in oops?

606


What does it mean when someone says I oop?

574


How do you define a class in oop?

620


#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.

3240


What is the point of polymorphism?

578


What is polymorphism and types?

594


What is the purpose of enum?

577


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1409


What is the highest level of cohesion?

567


2. Give the different notations for the class.\

1582