GeekInterview.com
Series: Subject: Topic:
Question: 12 of 1118

Encapsulation and data abstraction in Java

can somebody tell me what is the example of encapsulation , data abstraction & polymorphism?
Asked by: dev patel | Member Since Jun-2012 | Asked on: Jun 16th, 2012

View all questions by dev patel   View all answers by dev patel

Showing Answers 1 - 1 of 1 Answers
sivasankar reddy lakku

Answered On : Jul 3rd, 2012

abstraction is defined as hiding the complexity of process.Encapsulation is defined as wrapping up of DATA and FUNCTIONS together in container i.e class.Take real time example Any Bike that we take we know only how to ride the bike but we don't know what mechanism takes place inside the bike while riding.mechanism inside bike known as Abstraction.with help of key we can ride the bike i.e Encapsulation(ie Objects of class)polymorphism is defined as ability to make more than one form ,ie is two types Compile time,Run time polymorphism

Yes  1 User has rated as useful.
  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.