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

in java there are four main concepts which are back_bone to
java,they are.
ABSTRACTION,
ENCAPSULATION,
INHERITANCE,
POLYMORPHISM.
ABSTRACTION:Simply,abstraction means showing
essentialthings and hiding non_essential or un_neccessary
things.
Eg:many people want to drive different types of cars with
variety styles.here,we are hiding the inner side design
(i.eengine battery,sound system wirings etc.,i.e
non_essential)but we are showing (sound system,remote
system to operate those systems).
ENCAPSULATION:combing of both data and methods.
eg:simply in java language,in an single class we are using
or combing both instance variables and methods.
POLYMORPHISM:it is an ability to take more than one form.
eg:STUDENT,a student is acting like a student in college
camplus,and also acting as an employee in part time job and
acting as an daughter/son in homes.
INHERITANCE:in java,deriving a new class from an old class
(i.e,already existing one) or simply new or derived or
super class acquiring the properties of old class or base
or sub class.
eg:as_usual,CHILD AND PARENT RELATIONSHIP i.e,jeans
(daughter or son getting the fetures of his/her parents).

THANK YOU.

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we have more than one package statement in the source file?

1025


Can an integer be null java?

941


What is finalize()?

1127


What is an accessor?

1616


What is singleton class in java and how can we make a class singleton?

1085


Explain when classnotfoundexception will be raised ?

989


Does .length start 0 java?

963


What is the difference between variable & constant?

972


How many bytes is 255 characters?

930


Can a constructor be private and how are this() and super() method used with constructor?

946


Can you write a java class that could be used both as an applet as well as an application?

916


What is meant by class and object in java?

980


what is the use of bean managed and container managed with example?

1935


How to sort a collection of custom Objects in Java?

1011


What is the significance of java packages?

1072