Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is this job good for future? can do this job post grduate student?

2164


State what is encapsulation and friend function?

1269


Which is not an object oriented programming language?

997


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

2138


Why is object oriented programming so hard?

1087


What is an advantage of polymorphism?

1097


What is object in oop with example?

1246


What are properties in oop?

1089


What is overloading and its types?

1175


What is pointer in oop?

1056


What are the 3 principles of oop?

1123


What is the difference between encapsulation and polymorphism?

1112


What is polymorphism give a real life example?

1038


What is multilevel inheritance?

1200


What are the 3 pillars of oop?

1193