Exercise 2

1 Inheritance

Consider the Bicycle class below...




Define a record,
ChildrensBike, that inherits from the class Bicycle and is meant for kids. Give the variables values.



1.1



1.1.1 Simulation of Bicycle and ChildrensBike