in reply to Re: A class that cannot be subclassed.
in thread A class that cannot be subclassed.
Our coding standards say to prefer composition over subclassing. There's a brief summary of some of the arguments at Consider composition instead of subclassing. I don't see that as a reason to be hostile to the practice to the point of taking steps to prevent it, but this might not have been a general situation either. I suppose there could be a class that the author knows would break if subclassed. In that case, it might make sense to try to force that not to happen.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A class that cannot be subclassed. (direct)
by tye (Sage) on Feb 28, 2008 at 05:20 UTC | |
|
Re^3: A class that cannot be subclassed.
by chromatic (Archbishop) on Feb 28, 2008 at 08:01 UTC | |
|
Re^3: A class that cannot be subclassed.
by Anonymous Monk on Feb 28, 2008 at 16:06 UTC |