Cho Vehicle(String name, int wheels) lưu name, wheels (private) + getter info() trả <name> with <wheels> wheels.
Cài đặt Car extends Vehicle với constructor Car(String name) gọi super(name, 4).
Main.java đọc N tên xe, in info() của mỗi xe.
Dòng 1: N. N dòng tên xe.
1 <= N <= 100.
N dòng <name> with 4 wheels.
Ví dụ:
Đầu vào:
2
Toyota
Honda
Đầu ra:
Toyota with 4 wheels
Honda with 4 wheels
Giải thích:
Chọn một file để chỉnh sửa hoặc tạo file mới