Write a superclass Vehicle (protected plate and km, toll() = 0.5 yuan per km, type(), and toString() formatted %-6s %-9s %4d km toll %7.2f using type() and toll()), and three subclasses that override toll() and type():
Car(plate, km, electric)— electric cars pay 20 % less than the base toll (super.toll()), typeCarorCar-EV;Truck(plate, km, axles)— base toll × axles / 2 + 10, typeTruck3etc.;Bus(plate, km)— 1.5 × base toll, capped at 120.
TollStation.main reads car PLATE KM true|false, truck PLATE KM AXLES or bus PLATE KM lines into a Vehicle[], prints each vehicle and Total collected: … yuan from n vehicles.