![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
|
What are abstract data types?
if it isn't too much, could someone please help clarify why abstact data types create a layer boundary between modules. i also don't understand too much about why it is such a valuable approach and how it can be implemented in a language like c++ or java. also why is it useful to hide data and the code that processes the data.
Thanks for your time. Code_Warrior |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Re: What are abstract data types?
Abstract data types allow definition of a fixed interface (method of interaction) between modules. If there is not a fixed interface (i.e. the interface can change) between two modules then any change in one module can cause code in the other module to function incorrectly, forcing a need to retest (confirm if anything is functioning incorrectly) and then, if errors are encountered, to correct both modules whenever one changes. That translates into significantly more effort to maintain both modules, or to get them working correctly in the first place.
Data and code hiding simply means that the implementation details in one module are not made visible to other modules (i.e. there is a fixed interface). I'll leave the question of implementing abstract data types or data/code hiding as a further exercise: there are many ways of doing that in both languages. |
|
|
|
|
|
#3 |
|
hi: for(;;) goto hi;
|
Re: What are abstract data types?
First post, a peculiarly worded set of questions...
I smell homework!
__________________
How do you play Religious Roulette? Stand around in a circle and blaspheme till someone gets struck by lightning. |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Re: What are abstract data types?
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
Re: What are abstract data types?
Ah, no wonder Grumpy's post was abnormally brief!
(For his standards, of course) ![]() |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Re: What are abstract data types?
Ah, Sane, I'd like to show you the "V for victory" sign that your President Bush showed to the Australian people while visiting Canberra in 1992.
|
|
|
|
|
|
#7 |
|
Newbie
|
Re: What are abstract data types?
actually grumpy's answer was pretty enlightening. as far as homework goes.....i don't know yet, my semester is starting tomarrow and i wanna get a head start on my data structures class by atleast getting a little bit of understanding on something that im sure i might have a problem with.
thanks. |
|
|
|
|
|
#8 | |
|
Caffeinated Neural Net
![]() Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,033
Rep Power: 5
![]() |
Re: What are abstract data types?
Quote:
![]()
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot. - Vaarsuvius, Order of the Stick |
|
|
|
|
|
|
#9 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,223
Rep Power: 5
![]() |
Re: What are abstract data types?
Only Canadians believe Canada is not part of the US!!!!
![]() |
|
|
|
|
|
#10 |
|
Programming Guru
![]() ![]() ![]() |
Re: What are abstract data types?
I'm American, but he isn't my president... I don't claim him.
![]()
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| convert unarrenged .txt data to arrange .txt data | pastalover | Visual Basic | 2 | Jun 23rd, 2006 4:22 PM |
| C# Datetime data types | King | C# | 2 | Jun 4th, 2006 11:21 PM |
| Recommended Practice for returning data from function | Arla | C# | 1 | Aug 16th, 2005 12:21 PM |
| help with sockets, having a client recieve data as well as send. | cypherkronis | Python | 7 | Jul 1st, 2005 5:59 PM |
| Data Types | Ashok | ASP | 1 | Jun 19th, 2005 12:11 PM |