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

Answer Posted / prabhash

Object-oriented programming (OOP) is a programming paradigm
that represents concepts as "objects" that have data fields
(attributes that describe the object) and associated
procedures known as methods. Objects, which are usually
instances of classes, are used to interact with one another
to design applications and computer programs
In Procedural Programming language the execution of
application can be step by step.
that means there is no need to follow the order of
execution on OOP.
it depends on the object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1639


What is variable example?

595


What is the advantage of oop over procedural language?

629


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1652


What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }

1988






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

3253


explain sub-type and sub class? atleast u have differ it into 4 points?

1836


What is the difference between abstraction and polymorphism?

617


Can private class be inherited?

619


What is the purpose of polymorphism?

681


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1895


why reinterpret cast is considered dangerous?

1903


What are two types of polymorphism?

611


What is polymorphism what is it for and how is it used?

576


What is encapsulation and abstraction? How are they implemented in C++?

637