@@ -0,0 +1,870 @@
+/*%0A * To change this license header, choose License Headers in Project Properties.%0A * To change this template file, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage tpyak;%0A%0A/**%0A *%0A * @author Atef%0A */%0Apublic class Vhs extends Article %7B%0A%0A%09TypeVhs type = null;%0A%0A%09public Vhs(Film film, TypeVhs type) %7B%0A%09%09super(film);%0A%09%09this.type = type;%0A%09%7D%0A%0A%09public TypeVhs getType() %7B%0A%09%09return type;%0A%09%7D%0A%0A%09@Override%0A%09public String getDescription(boolean complete) %7B%0A%09%09String s = %22%22;%0A%09%09s += String.format(%22VHS (%25s)%5Cn%22, type);%0A%09%09s += super.getDescription(complete);%0A%09%09return s;%0A%09%7D%0A%0A%09@Override%0A%09public double tarifLocation() %7B%0A%09%09return 1.5 + (getFilm() != null ? getFilm().isNouveaute() ? 0.5 : 0 : 0);%0A%09%7D%0A%0A%09@Override%0A%09public void finalize() throws Throwable %7B%0A%09%09super.finalize();%0A%09%09System.out.println(this.getClass().getName()+%22 Objet nettoy%C3%A9 de la m%C3%A9moire%22);%0A%09%7D%0A%7D%0A

Create Vhs.java