views:

12

answers:

0

I took a data structures class at a community college and transferred over to a university into a software engineering program. The data structures class i took covered. Queue,stack combined with circular arrays, hash tables and trees. My friend is currently taking data structures at the university i transferred to. They are teaching him those same DS principles. However, they are making him use

Class Hierarchy - ADT Hierarchy ~ Object, Ownership, 
container, wrapper, iterator, visitor, etc..

I heard this wasnt practical. "Having a virtual container hierarchy in C++ is highly unorthodox. Normally, this would be done completely different so I’m surprised that this is a University class assignment." and "If this is what the C++ class is going to teach you, transfer to another one if possible."

Here is a link to a diagram that show exactly what i am talking about.

here is the chart.
http://www.brpreiss.com/books/opus4/html/page110.html#4454

here is the power point which gives code also..

www.d.umn.edu/~jallert/cs1521/StackObject/StackObject.ppt

they are both worth looking at.. So, is this not practical in C++? isnt this just design patterns? keep in mind this is software engineering and not CS - i think there is a little difference..