a class on vehicle and a derived base class of bus and car