|Dec 11, 2005, 09:29 PM||#1|
Abstract Data Types
Can someone explain what an Abstract Data Type is in Java? Plus, what does it look like, and what does it do?
It's all about the Pentiums.
|Dec 11, 2005, 10:31 PM||#2|
A common example of an ADT is a list. A list may have a set of public methods to insert or remove objects, but the implementation details are hidden inside the ADT. The list might be implemented using an array or a linked-list, but the person using the class doesn't need to know or care about these details.
In Java, ADTs are frequently created by defining in interface, and then concrete classes "implement" the interface. http://java.sun.com/docs/books/tutor...interface.html
There are also Abstract classes and abstract methods in Java, but it sounds like you're asking more about the general ADT concept.
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Applescript: How do I create custom data types?||moonman239||Mac Programming||1||Jan 5, 2013 11:07 PM|
All times are GMT -5. The time now is 09:03 PM.