Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- Represents an automobile.
- */
- public class Auto extends Vehicle
- {
- String plate;
- public Auto(String _vin, String _plate)
- {
- super(_vin);
- plate = _plate;
- }
- @Override
- public String getID()
- {
- return String.format("VIN=%s,plate=%s", super.getID(), plate);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement