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 / murali krishna thanneeru

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 ho 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 ?    69 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is object cloning in Java?

1056


If we don’t want some of the fields not to serialize how to do that?

956


When a byte datatype is used?

2036


What happens when main () method is declared as private?

1084


What does this () mean in java?

931


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

878


What is the base class of all classes?

983


Can we have multiple classes in single file ?

1013


What does flagged out mean?

1001


How can we make sure main() is the last thread to finish in java program?

1142


What are the different ways to handle exceptions?

938


What are three types of loops in java?

1049


What is immutable data?

991


Difference between overriding and overloading in java?

1007


what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread

927