Re: Methods within many instantiated classes?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Andreas Håkansson ("Andreas)
Date: 03/27/04


Date: Sat, 27 Mar 2004 01:19:39 +0100

Charlie,

    I think method two would be suiteable if you had a polymorphic
situation,
where you would write a support class to manipulate the classes, perhas with
static methods. Other than that I would not recommend it either.

//Andreas

"Charlie" <anonymous@discussions.microsoft.com> skrev i meddelandet
news:72C2EA4A-2E3B-4BD6-94AD-CBF640FD2989@microsoft.com...
> This isn't a direct answer to your question, but method #2 goes against
the concept of object-oriented design. I think using this approach would
lead to applications that are difficult to understand and maintain.
>
> method #1 is far superior in terms of overall design, in my opinion.



Relevant Pages

  • Re: Class as member of another class question.
    ... > Can anyone recommend a good book on object-oriented design? ... > know how/why something works...also I can have more control. ... > built-in stuff...it's more fun this way. ...
    (comp.lang.cpp)
  • Re: Class as member of another class question.
    ... Can anyone recommend a good book on object-oriented design? ... I've passed the knowledge level of the C++ stuff I have and need ...
    (comp.lang.cpp)
  • Re: Is this too much OOP?
    ... Can you recommend an author on OOP that I could look at. ... I liked Robert Martin's first book, and I expect his second is better. ... Arthur Riel has some good stuff in "Object-Oriented Design Heuristics". ...
    (comp.object)
  • Re: Class as member of another class question.
    ... > Can anyone recommend a good book on object-oriented design? ... by Eric Gramma, et al ... A must for your bookshelf. ...
    (comp.lang.cpp)