features of OOPS

Answer Posted / chabi

features of oops:
objects.
classes
encapsulation
abstraction
inheritance
polymorphism
dynamic binding
message communication

Is This Answer Correct ?    84 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

3217


What is polymorphism in oops?

540


Why is there no multiple inheritance?

546


Write a program to reverse a string using recursive function?

1770


What is the full form of oops?

589






What is a function in oop?

601


What is abstraction encapsulation?

632


Is abstract thinking intelligence?

568


What is the difference between inheritance and polymorphism?

569


Which method cannot be overridden?

549


Why do we use oops?

561


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3526


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1552


What is multilevel inheritance?

702


What is object-oriented programming? Webopedia definition

682