small base class
From: Guybrush Treepwood (schemer_at_hotmail.com)
Date: 01/11/05
- Next message: Lurker: "Re: Every software defect should be able to reproduce??"
- Previous message: Sylvia Gardner: "Re: how many bugs do you find and correct during TDD?"
- Next in thread: iamfractal_at_hotmail.com: "Re: small base class"
- Reply: iamfractal_at_hotmail.com: "Re: small base class"
- Reply: H. S. Lahman: "Re: small base class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 11 Jan 2005 07:12:28 +0100
I'm programming a postnetwork simulation. There are Offices and Links
between them, postmessages get send through to another office whenever
there still is no link between the office and the recipient. So the
recipients are regular people who can receive a message, but from where you
can't send one. The offices and links are checked by a discrete event
simulator to see if they have anything to send.
Is thought something about this would do as inheritance hierarchy:
abstract base class: Receiver
abstract class ControlableObject inherits from Receiver
Person inherits from Receiver
Office inherits from ControlableObject
Link inherits from ControlableObject
My question now is, the abstract base class Receiver has only 1 method,
receive. This makes me wonder, is this a good design?
- Next message: Lurker: "Re: Every software defect should be able to reproduce??"
- Previous message: Sylvia Gardner: "Re: how many bugs do you find and correct during TDD?"
- Next in thread: iamfractal_at_hotmail.com: "Re: small base class"
- Reply: iamfractal_at_hotmail.com: "Re: small base class"
- Reply: H. S. Lahman: "Re: small base class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|