Interface Example -6
nYou can check the type of an object using the instanceof operator
nSince ElectricBike objects are both Bike and Retail objects, the following if statements will both evaluate to true
n
n
if (electricBike instanceof Bike)
  ...
if (electricBike instanceof Retail)
  ...