Java, Architecture, Clean Code, Solid, Programming.
following vehicle hierarchy. class Vehicle { void accelerate() { // implementation } void slowDown() { // implementation } void turn(int angle) { // implementation } } class Car extends Vehicle { } class Bus extends Vehicle { } // Train class class Train extends Vehicle { // Overridden method