What are the OOPS concepts?
Answer Posted / manoj kumar verma
Object Oriented Programming (OOP) is used to build OOPs.
Object are the basic building block of Object Oriented
Programming System (oops).The real world objects have two
characteristics: state and behavior.
OOPs consist of the following features:
1. Encapsulation
2. Abstraction
3. Inheritance
4. Polymorphism
Encapsulation: Encapsulation is the process of hiding of the
details of an object that do not contribute to its essential
characteristics.
Means, hiding of the data members or packing of data members
and methods inside a single unit. i.e. class
For example:
Class A
{
int x,y,z; // member data
teach(); // member method
A manoj; object
}
Where “A” is the class name and manoj is the object of class.
Abstraction: Only show the essential details and do not show
the non essential details. i.e. concentrate an
essential/compulsory any parts.
Like tv, buttens like on/off switch, color, volume channel
are shows but reset parts are encapsulated.
Inheritance: Inheritance enables you to extend the
functionality of an existing class. You create a class that
inherits the attributes and behavior of another class. The
new class can consist of a few new attributes and behaviors
that are specific to the class.
“Reusability of the code by making derived class from the
base class.
i.e.
father -> child.
More properties/features are with child class.
A class is made looking at which the new derived class id
made with modifications or additions in the derived class.
Polymorphism: when one object shows various forms then it is
known as polymorphism.
Poly -> many
Morphism ->form
Many forms of an object.
For i.e. with one mobile button you can do various actions
at different times.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what type of question are asked in thoughtworks pair programming round ?
What is overloading in oops?
When not to use object oriented programming?
What is abstraction in oops?
What is an interface in oop?
Can enum be null?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
Why do we use class?
How to improve object oriented design skills?
What is class and example?
What is the example of polymorphism?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is abstraction in oop with example?
What makes a language oop?
What is abstraction encapsulation?