Encapsulation in java and its relation with abstraction

Most of you will agree that encapsulation and abstraction together brings a lot of confusion. Most blogs add only confusion further. Lets solve this puzzle. I started working on this post after my previous post “Understanding abstraction in Java“. My goal was to understand encapsulation in java and how it relates to abstraction. As soon … Continue reading Encapsulation in java and its relation with abstraction

Understanding abstraction in java

In computer science, abstraction is the process by which data and programs are defined with a representation similar in form to its meaning (semantics), while hiding away the implementation details. Source : WikiPedia abstraction – a concept or idea not associated with any specific instance. Sections: What is abstraction Types of abstraction How to use abstraction in … Continue reading Understanding abstraction in java