-
December 9th, 2008, 09:30 AM
#16
Re: Cannot Instantiate abstract Object?
 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?
"It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong."
Richard P. Feynman
-
December 9th, 2008, 09:48 AM
#17
Re: Cannot Instantiate abstract Object?
 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
-
December 9th, 2008, 04:26 PM
#18
Re: Cannot Instantiate abstract Object?
Looks like adding the missing files resolved the issue. Thanks for all your help.
-Jesse
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|