Re: Cannot Instantiate abstract Object?
Quote:
Originally Posted by
JesseF
The idea of a "god object" makes sense to me when you're talking about being able to treat multiple structures and data containers the same way.
Why doesn't C++ have a universal class Object?
Re: Cannot Instantiate abstract Object?
Quote:
Originally Posted by
JesseF
This is a standard Data Structures class, we're using a book by Bruno Preiss. The idea of a "god object" makes sense to me when you're talking about being able to treat multiple structures and data containers the same way. I take it there's a better way? What do you suggest?
Yes, templates. You're using in your code current code the very thing that eliminates the need for god objects in C++.
Sort of like using std::string to implement char array handling (i.e. doesn't make sense).
Regards,
Paul McKenzie
Re: Cannot Instantiate abstract Object?
Looks like adding the missing files resolved the issue. Thanks for all your help.
-Jesse