UML diagram for the fruit program. The Apple, Orange, and Grape classes are derived from the base Fruit class. This inheritance is represented by the is-a relationship, that is, an Apple is-a Fruit, an Orange is-a Fruit, a Grape is-a Fruit. UML notation for inheritance is the arrow (note arrowhead should have a bottom like a pyramid). Fruit objects are part-of a List object. There are possibly many Fruit objects (represented by the asterisk) in one List object. UML notation is the line with a diamond on the end. +---------+ +---------+ | | * 1 | | | Fruit |---------------<>| List | | | | | +---------+ +---------+ ^ ^ ^ / | \ / | \ / | \ / | \ / | \ +---------+ +---------+ +---------+ | | | | | | | Apple | | Orange | | Grape | | | | | | | +---------+ +---------+ +---------+