an interface is a device that unrelated objects use to interact with each other.The bicycle class (abstract class) and its class hierarchy (mountainBike, racingBike subclasses of bycycle) defines what a bicycle can and cannot do in terms of its bicycleness.