public class Laptop extends Computer implements Discountable {
    
    public Laptop(String id, int price) {
        super(id, price);
    }
    
    @Override
    public void discount(int value) {
        if (price * 0.2 > value) {
            price = price - value;
        }
    }
    
    public void print() {
        System.out.println("Laptop-" + product + ": " + getPrice());
    }
}
