What are the OOPS concepts?

Answer Posted / ankit pandey

There are 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


1. Encapsulation :
It is the mechanism that binds together
code and data in manipulates, and keeps both safe from
outside interference and misuse. In short it isolates
a
particular code and data from all other codes and data. A
well-defined interface controls the access to that
particular code and data.

2. Polymorphism:
It is a feature that allows one interface
to be used for general class of actions. The
specific
action is determined by the exact nature of the
situation.
In general polymorphism means "one interface,
multiple
methods", This means that it is possible to design
a
generic interface to a group of related activities.
This
helps reduce complexity by allowing the same
interface to
be used to specify a general class of action. It is
the
compiler's job to select the specific action (that
is,
method) as it applies to each situation

3. Inheritance:
It is the process by which one object
acquires the properties of another object. This
supports
the hierarchical classification. Without the use of
hierarchies, each object would need to define all
its
characteristics explicitly. However, by use of
inheritance,
an object need only define those qualities that
make it
unique within its class. It can inherit its general
attributes from its parent. A new sub-class
inherits all of
the attributes of all of its ancestors.

4. Dynamic Binding:
The property of object-oriented programming
languages where
the code executed to perform a given operation is
determined
at run time from the class of the operand(s)


5. Message Passing :
In the terminology of some object-oriented programming
languages, a message is the single means to pass control to
an object. If the object "responds" to the message, it has
a method for that message. In pure object-oriented
programming, message passing is performed exclusively
through a dynamic dispatch strategy.[citation needed]
Objects can send messages to other objects from within
their method bodies. Message passing enables extreme late
binding in systems. Sending the same message to an object
twice will usually result in the object applying the method
twice. Two messages are considered to be the same message
type, if the name and the arguments of the message are
identical. Some languages support the forwarding
ordelegation of method invocations from one object to
another if the former has no method to handle the message,
but "knows" another object that may have one

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to improve object oriented design skills?

575


Why we use classes in oop?

593


What is the difference between a mixin and inheritance?

529


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1790


Which language is pure oop?

560






can inline function declare in private part of class?

3667


Can we create object of abstract class?

585


What is coupling in oop?

606


Can we define a class within the interface?

567


program for insertion ,deletion,sorting in double link list

2289


What is inheritance in oop?

610


What is polymorphism in oops with example?

537


How many human genes are polymorphic?

582


what's the basic's in dot net

1746


What is the difference between abstraction and polymorphism?

625