attribute or subclass
From: Gergely Buday (greg_at_no-spam.xhvg.hu)
Date: 04/22/04
- Next message: Daniel T.: "Re: Aggregation vs composition"
- Previous message: John English: "Re: OOP Language for OS Development"
- Next in thread: Corno: "Re: attribute or subclass"
- Reply: Corno: "Re: attribute or subclass"
- Reply: Will Twentyman: "Re: attribute or subclass"
- Reply: Pradyumn Sharma: "Re: attribute or subclass"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Apr 2004 14:03:06 +0200
I have a class and I would like to have another class that somehow contains
the original one. There are two ways to achieve this:
- to have the original class as an attribute of the new class
- to derive the new class as the descendant of the original one
Which are the pros and cons of these methods?
- Gergely
- Next message: Daniel T.: "Re: Aggregation vs composition"
- Previous message: John English: "Re: OOP Language for OS Development"
- Next in thread: Corno: "Re: attribute or subclass"
- Reply: Corno: "Re: attribute or subclass"
- Reply: Will Twentyman: "Re: attribute or subclass"
- Reply: Pradyumn Sharma: "Re: attribute or subclass"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|