[RESOLVED] Cannot Instantiate abstract Object? - Page 2
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Thread: [RESOLVED] Cannot Instantiate abstract Object?

  1. #16
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,712

    Re: Cannot Instantiate abstract Object?

    Quote Originally Posted by JesseF View Post
    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

  2. #17
    Join Date
    Apr 1999
    Posts
    27,426

    Re: Cannot Instantiate abstract Object?

    Quote Originally Posted by JesseF View Post
    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

  3. #18
    Join Date
    Dec 2008
    Posts
    5

    Smile Re: Cannot Instantiate abstract Object?

    Looks like adding the missing files resolved the issue. Thanks for all your help.

    -Jesse

Page 2 of 2 FirstFirst 12

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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center