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 / 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


Please Help Members By Posting Answers For Below Questions

what type of question are asked in thoughtworks pair programming round ?

2218


What is overloading in oops?

1164


When not to use object oriented programming?

1110


What is abstraction in oops?

1048


What is an interface in oop?

1048


Can enum be null?

1020


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.

1955


Why do we use class?

1088


How to improve object oriented design skills?

1017


What is class and example?

1186


What is the example of polymorphism?

1132


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.

2198


What is abstraction in oop with example?

1128


What makes a language oop?

1066


What is abstraction encapsulation?

1127