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 concept in java explain with real time
examples

Answer Posted / magesh

We have the following oops concepts like
1.Abtsrction
2.Encapsulation
3.Inheritance
4.Polymorphism

Abstraction:

hiding unnecessary data from the users and making the
application as user friendly then it is called as
abstrcation

ex:Any mail account the user is simply filling the form and
he don't know how it is developed.

Encapsulation:

Wrapping the data and code as a single unit is called as
encapsulation.

ex:Capsule is the best real time example for it.In it we
will have two types of drugs combined as single capsule.

Inheritance :
Acquiring the properties from one class(base class or parent
class)to another class(derived class or child class)is
called as inheritance.

Ex:Inventing laptop from desktop.

Polymorphism:

Single entity behaving in different forms is called as
polymorphism

ex:Mouse is for click the buttons and dragging the bars or
placing the pointer in a particular place

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 your platform?s default character encoding and how to know this?

2413


Why stringbuilder is not thread safe?

1080


Write a java program that prints all the values given at command-line.

1052


What is the purpose of extern variable?

1057


Can a top level class be private or protected?

1095


Why do we need singleton class?

1043


What are the types of inner classes (non-static nested class) used in java?

1108


What is a pattern what is an anti pattern?

1030


What is java autoboxing?

992


What is supplier in java?

1050


Is boolean a wrapper class in java?

1101


What are the Main functions of Java?

1129


What is a java list?

1156


When is an object subject to garbage collection?

1147


When to use runnable interface vs thread class in java?

1031