You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
521 B

package com.company.OnlineShop;
public class DVD extends Article {
public static double VAT = 0.19;
private String Name = "";
private int Duration= 0;
private int CountryCode = 0;
public DVD(int articleNumber, double price, String Name, int Duration, int CountryCode){
super(articleNumber, price);
this.Name = Name;
this.Duration = Duration;
this.CountryCode = CountryCode;
}
public double getPrice(){
return super.getPrice() + ( VAT + 1);
}
}