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

Answer Posted / oopslover

Oops is programing concept which works around the its object
and data, it works on real world objects. helps us in
building robust application, provides more security through
its objects. where as procedural language is totally
different it implies to use different functional things to
be used under one single function e.g "main" method in C.
The logic is expose to the whole program.

Is This Answer Correct ?    44 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use CMutex, CSemaphore in VC++ MFC

4554


when to use 'mutable' keyword and when to use 'const cast' in c++

1907


Why we use classes in oop?

804


What is the difference between encapsulation and polymorphism?

864


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

3532


What is inheritance write a program to show use of inheritance?

902


What is basic concept of oop?

922


What is the highest level of cohesion?

793


What is abstraction example?

861


what is the drawback of classical methods in oops?

3146


Describe these concepts: Polymorphism, Inheritance and Abstraction.

900


What is the point of polymorphism?

797


What is an interface in oop?

794


Can a varargs method be overloaded?

839


• What are the desirable attributes for memory managment?

1975