What are the OOPS concepts?

Answer Posted / ram

There are so many things in oops which are related to it.
The first we understand that the full form of oops is
OBJECT ORIENTED PROGRAMING STRUCTURE.Many people knows that
the full form of oop but they don't know about the s means
structure which may be asked in interview.
Now we discuss about the concepts
THEY ARE
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. 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.
4. 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.
5. 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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2262


What does sksksk mean in text slang?

1816


What is overriding in oop?

773


What is difference between multiple inheritance and multilevel inheritance?

855


What are the three main types of variables?

815


Can we have inheritance without polymorphism?

774


What is new keyword in oops?

773


What is a null tree?

844


Prepare me a program for the animation of train

2206


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1886


Why do we use inheritance?

809


Why is abstraction needed?

748


What do you mean by variable?

752


Explain the concepts involved in Object Oriented programming.

855


What is encapsulation in oops?

747