Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Vehicle {
- public static void main(String[] args) {
- Bus bus = new Bus();
- Truck truck = new Truck();
- System.out.println(bus.getNameOfRoute());
- System.out.println(truck.getNumberOfSeats());
- bus.licenseNumber = 5469;
- bus.engineNumber = 2;
- bus.brandName = "Hundai";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement