Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Beginning Java and the fly likes Data abstraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Data abstraction" Watch "Data abstraction" New topic

Data abstraction

rakesh kadulkar
Ranch Hand

Joined: Jul 24, 2008
Posts: 115
hello can someone define for me what is "data abstraction" exactly is?

It is an object oriented concept.

Rakesh Kadulkar
santhosh.R gowda
Ranch Hand

Joined: Apr 06, 2009
Posts: 296
The term data abstraction is similar to data encapsulation. All the data and the methods that make sense to the objects of a class that is been designed need to be a part of the class. All unnecessary details should be left behind. E.g. when designing a class to represent a student we need data elements such as student no, student name, marks, grade, etc. If we now design a class representing a cricket player we need details like no of centuries, striking rate, no of matches played, etc. It will not make sense to add the player’s marks, grades which are applicable to a student class to this player class. The classes designed in object oriented language are also termed as User defined data types (UDT).

Creativity is nothing but Breaking Rules
I agree. Here's the link:
subject: Data abstraction
jQuery in Action, 3rd edition