What is OOPS and How it is different from Procedural
Programming ?

Answer Posted / test

OOP is programming which is oriented around objects, thus
taking advantages of encapsulation, polymorphism and
inheritance to increase code reuse and decrease code
mantenance.

In procedural program, programming logic follows certain
procedures and intructions are executed one after another.
In OOP unit of program is object which is nothing but
combination of data and code.

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is basic concept of oop?

713


Why do we use oop?

611


What is overloading in oop?

581


#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


What are constructors in oop?

605






write string class as your own class in java without using any built-in function

1984


What is constructor in oop?

593


What is data binding in oops?

595


When not to use object oriented programming?

576


Why is encapsulation used?

584


What is the difference between inheritance and polymorphism?

599


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1466


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1650


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1671


What is use of overloading?

618