Encapsulation and data abstraction in Java

Can somebody tell me what is the example of encapsulation , data abstraction & polymorphism?

Questions by dev patel   answers by dev patel

Showing Answers 1 - 3 of 3 Answers

sivasankar reddy lakku

  • 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

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions