When is the situation where Generalization is inevitable over Composition?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

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

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    583

    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
  •  


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