forked from asidun/Java-Advanced-Feb-Apr-2018
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Oleh Shklyar edited this page Mar 30, 2018
·
12 revisions
+--------------+ +---------------+ +----------------+
|<<interface>> | | <<interface>> | | <<interface>> |
| Bouquet | +------+ Flower | +---+ Freshness |
+-------+------+ | +------+--------+ | +-------+--------+
^ | ^ | ^
| | | | |
+-------+------+ | +------+--------+ | +-------+--------+
|MarriedBouquet| | |GeneralFlower A| | |FreshnessInteger|
+--------------+ | +---------------+ | +----------------+
|id | | |id | | |freshness |
|price | | |freshness +----+ +----------------+
|name | | |length |
|assemblePrice | | |price |
|flowers +------+ +--+----+----+--+
|price | ^ ^ ^
+--------------+ +--------+ | +--------+
| | |
+----+----+ +----+----+ +----+----+
|Chamomile| | Rose | | Tulip |
+---------+ +---------+ +---------+
|petals | |spike | | |
+---------+ +---------+ +---------+