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

Answer Posted / janet

In procedural program ,programming logic follows
certain procedures and the instructions are executed one
after another. In OOPs program,unit of program is
object,which is nothing but combination of data and code.
In procedural program,data is exposed to the whole
program where as in OOP's program ,it is accesible within
the object and which in turn assures the security of the
code.

Is This Answer Correct ?    111 Yes 38 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does oop mean in snapchat?

845


What do you mean by overloading?

711


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

3429


What is the difference between inheritance and polymorphism?

731


What is encapsulation in oop?

720






Which method cannot be overridden?

698


How is class defined?

735


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.

1600


What is the use of oops?

729


When not to use object oriented programming?

704


What are oops functions?

712


What is the main purpose of inheritance law?

826


How to use CMutex, CSemaphore in VC++ MFC

4470


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1845


What are functions in oop?

726