Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Beginning Java and the fly likes abstraction v/s encpsualtion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "abstraction v/s encpsualtion" Watch "abstraction v/s encpsualtion" New topic

abstraction v/s encpsualtion

thejwal pavithran
Ranch Hand

Joined: Feb 11, 2012
Posts: 119
hey guys,

I read this book which says that abstraction is a thought process and encapsulation is an implementation of abstraction.
It also said that encapsulation is a language feature while abstraction is not.
I dont have much ooad knowledge but as I know abstraction is using something without needing to know how it works. So i assumed it was the ability to use a method without needing to know how it is implemented. So I always had the Idea that abstraction is an implementation. I jumped straight into the coding part without giving much importance to basics. but i am reviewing these things as I read that it is the design part that you have to concentrate before the coding part to develop good software..

So I would like to know How abstraction is a thought process. Now Im totally confused about the diff bw abstraction and encapsulation itself.

on job hunt
Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333

I will never like to learn anything this way (theoretically) .You are trying to learn java, so i think it will be good to write some java codes to learn anything, with time you will get that.

I agree. Here's the link:
subject: abstraction v/s encpsualtion