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

ABSTRACTION
ENCAPSULATION
POLYMORPHISM
INHERITANCE
these 4 are the OOPS concept in java.
ABSTRACTION:means hiding the irrelevant information from the
user.
EXAMPLE:a user of mobile phone in not interested with the
circuitry involved it is irrelevant to the user of mobile
but he is only interested to know how to call a person,how
to send the message etc.thus the circuitry is hided from
the user.
ENCAPSULATION:means wrapping of data and method into a
single unit so that no one can misuse it and safe the date
from outside interface.
EX;MEDICAL CAPSULE
means the medicine is wall encapsulated with the outside
layer so that no one can it keeps the medicine safe from the
outer interface.
INHERITANCE:means object of a class acquire the property of
the object of another class.it provide reusability means if
we want to add more feature then instead of modifying the
class we have just to extend the class into subclass.
EXAMPLE:suppose a bird robin belongs to the class of flying
bird but flying bird also belong to the class bird.
so bird robin inherit the property of both.
POLYMORPHISM :means taking more than one form
EXAMPLE:Person in Home act is husband/son,
in Office acts Employer.
in Public Good Citizen.
hopefully i m able to solve your problem.THANX

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we able to pass objects as an arguments in java?

964


What does it mean to flush a file?

1004


What is bytecode in java ?

1117


What is the benefit of inner / nested classes ?

935


What are java packages?

974


How to handle a web browser resize operation?

1003


In a container there are 5 components. I want to display all the component names, how will you do that?

2137


Differences between traditional programming language and object oriented programming language?

1060


When should I use a singleton?

981


What is lambda programming?

940


Explain the use of volatile field modifier?

1022


State the difference between creating string as new () and literal.

1016


How big is a pointer?

982


Which sorting algorithm is in place?

903


Is null in java?

951