xandra wrote:
if i was given a sorce code for a c++ class, and asked if the class shown
is an ADT. how can i tell?
(This is off-topic: comp.programming is probably better, although comp.lang.c++
might do, but it isn't really a C++ question.
(a) Do you know what an ADT is? If not, find out first.
(b) Do you understand C++ classes? If not, do so first.
Deploy your understanding of (a) to see if (b) fits it.
Note that the same trick works for C code: if you understand ADTs and
C, you can tell if some C code "is" (implements) an ADT.
If you want to understand X+Y, asking about + doesn't help if you
don't understand X or Y.
)
--
Chris "apologies to Sir James Jeans. Or was it Eddington?" Dollin
"Life is full of mysteries. Consider this one of them." Sinclair, /Babylon 5/