advictoriam Mar 4th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- Represents a car.
- public class Car extends Vehicle
- public Car(double purchasePrice)
- public double getValue()
- double adjustedValue = super.getValue() - 0.25d * getMileage();
- return (adjustedValue > 0) ? adjustedValue : 0;
RAW Paste Data