![]() |
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 |
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. |
Re: What are abstract data types?
First post, a peculiarly worded set of questions...
I smell homework! |
Re: What are abstract data types?
Quote:
|
Re: What are abstract data types?
Ah, no wonder Grumpy's post was abnormally brief!
(For his standards, of course) :) |
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.
|
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. |
Re: What are abstract data types?
Quote:
|
Re: What are abstract data types?
Only Canadians believe Canada is not part of the US!!!! :lol:
|
Re: What are abstract data types?
I'm American, but he isn't my president... I don't claim him. :)
|
| All times are GMT -5. The time now is 3:43 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC