Definition of Object Oriented Programming in single line?

Answer Posted / deepanjali joshi

oops is real world entity,in which data and function are
hidden from outside the world only object of the class can
access the dat and function of class

Is This Answer Correct ?    27 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is destructor example?

606


Can abstract class have normal methods?

618


What is advantage of inheritance?

696


What is polymorphism and example?

596


what is different between oops and c++

2008






What does it mean when someone says I oop?

591


program for insertion ,deletion,sorting in double link list

2285


What are the types of abstraction?

566


How do you answer polymorphism?

582


Why do we use class?

640


Why multiple inheritance is not possible?

608


What is a superclass in oop?

675


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

3263


Which language is pure oop?

555


How do you achieve runtime polymorphism?

575