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

What is polymorphism and its types?

1009


Objective The objective of this problem is to test the understanding of Object-Oriented Programming (OOP) concepts, in particular, on encapsulation. Problem Description Create a program for managing customer’s bank accounts. A bank customer can do the following operations: 1. Create a new bank account with an initial balance. 2. Deposit money into his/her account. 3. Withdraw money from his/her account. For this operation, you need to output “Transaction successful” if the intended amount of money can be withdrawn, otherwise output “Transaction unsuccessful” and no money will be withdrawn from his/her account. Input The input contains several operations and is terminated by “0”. The operations will be “Create name amount”, “Deposit name amount”, or “Withdraw name amount”, where name is the customer’s name and amount is an integer indicating the amount of money. There will be at most 100 bank accounts and they are all created on the first month when the bank is opening. You may assume that all account holders have unique names and the names consist of only a single word. Output The output contains the transaction result of withdrawal operations and the final balance of all customers after some withdrawal and deposit operations (same order as the input). Sample Input Create Billy 2500 Create Charlie 1000 Create John 100 Withdraw Charlie 500 Deposit John 899 Withdraw Charlie 1000 0

2181


Why is polymorphism used?

997


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2335


What are properties in oop?

1025


Why is encapsulation used?

949


What is meant by oops concept?

991


Which language is pure oop?

943


What is the full form of oops?

1123


What is static in oop?

1027


when to use 'mutable' keyword and when to use 'const cast' in c++

2112


what is difference between class template and template class?

2598


What is multilevel inheritance?

1155


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1872


Where is pseudocode used?

1033