p****o 发帖数: 46 | 1 今天有人问我这道题,是关于设计的(他说是用java)。我把愿题帖一下,
Design an electrical controller that can start or turn off any number of
devices (A device could be a Computer, or a TV). Other people have completed
programming those devices and you cannot modify their source code, e.g.,to
ask them all to make a particular interface. Fortunately, each such device
already has two methods to start or stop. However, all these methods are
written by different people and have different function names (examples:
Computer.start(), |
|