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 |
What is a unary operator?
What is object in oop?
What is constructor overloading in oop?
Who invented oop?
What is a scope resolution operator?
Why do we need oop?
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort
why constructor cannt be declar virtually? why destructor cannt be overloaded?
When is a memory allocated to a class?
IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?
What is a macro? And how is a macro same as a template?
What is use of overloading?