CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    907

    When is the situation where Generalization is inevitable over Composition?

    Many people prefer composition to generalization in many scenarios,
    However, are there any times where generalization is an absolute necessity?
    Could you please raise an example where this could happen?
    Thanks
    Jack

  2. #2
    Join Date
    May 2009
    Posts
    2,413

    Re: When is the situation where Generalization is inevitable over Composition?

    Quote Originally Posted by lucky6969b View Post
    Many people prefer composition to generalization
    I've never heard of that. Do you mean: Favour object composition over class inheritance?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured