What are the OOPS concepts?
Answers were Sorted based on User's Feedback
Answer / vishanshu soni
BASIC CONCEPT OF OOPS:
1.OBJECTS:
An object is an abstraction of a real world entity. It may
represent a person,a placea number and icons or something
else that can be modelled.Any data in an object occupy some
space in memory and can communicate with eachother .
2.CLASSES:
A class is a collection of objects having common
features .It is a user defined datatypes which has data
members as well functions that manupulate these datas.
3.ABSTRACTION:
It can be defined as the separation of unnecessary
details or explanation from system requirments so as to
reduce the complexities of understanding requirments.
4. ENCAPSULATION:
It is a mechanism that puts the data and function together.
It is bthe result of hiding implimintation details of an
object from its user .The object hides its data to de
accessed by only those functions which are packed in the
class of that object.
5.INHERITANCE:
It is the relationship between two classes of object such
that one of the classes ,the child takes all the relevent
features of other class -the parent.
Inheritance bring about reusablity.
6.POLYMORPHISM:
polymorphism means having many forms that in a single
entity can takes more than one form.Polymorphism is
implemented through operator overloading and function
overloading.
7.DYNAMIC BINDING:
Dynamic binding is the proces of resolving the function to
be associated with yhe respective functions calls during
their runtime rather than compile time.
8.MESSAGE PASSING:
Every data in an objest in oops that is capable of
processing request known as message .All object can
communicate with each other by sending message to each other
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / s.kalaivanan
Polymorphism,
ihheritance,
encapulation,
abstraction,
The above are the 4 main concept of the oops
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramanji m.tech
1.objects
2.classes
3.data abstrtaction
4.data encapsulation
5.inheritance.
6.polymorphism.
7.msg passing
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rakesh
class,
Object,
data abstract and encapsulation
polymorphism,
inheritance,
overloading
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / razz
There are only five concepts in the oops others may be
derived from those:
1. Encapsulation and Data Abstraction
2. Polymorphism
3. Dynamic Binding
4. Message Passing
5. Inheritance
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / e.ramya
*objects
*classes
*inheritance
*polymorphism
*dynamic binding
*message communication
*Data abstraction
*Data encapsulaion
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / anusha
abstraction
encapsulation
polymorphisim
inheritence
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ashish
OOPS is the object oriented programming,which connect object to the real world entity. basically it depends on 4 concept.
1. Abstraction.
2. Encapsulation.
3. Polymorphism.
4. Inheritance.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / varsha patel
OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vaibhav munde
Object oriented programming organizes a program around it's
data i.e objects and a set of well defined interface to
that data. An Object-oriented program can be characterized
as data controlling access to code.
OOPs concepts are
1)object
2)class
3)encapsulation
4)abstraction
5)polymorphism
6)inheritance
7)message passing
8)dynamic binding
These all are partially supported by c++,java supports
all the above features
Is This Answer Correct ? | 0 Yes | 0 No |
I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe
#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> 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.
What is the use of fflush(stdin) in c++?
What are the fields of vtable
What is encapsulation process?
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
explain dynamic binding by drowing
Can we have inheritance without polymorphism?
c++ program to swap the objects of two different classes
What is the difference between abstraction and polymorphism?
What is the difference between an object and a class?