Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Sonderposten extends Artikel {
- public double rabatt;
- public Sonderposten(int artikelNr, int lagerzeit, double preis, String bezeichnung) {
- super(artikelNr,lagerzeit,preis,bezeichnung);
- if(lagerzeit > 12) {
- rabatt = 0.7;
- } else {
- rabatt = 0.9;
- }
- }
Add Comment
Please, Sign In to add comment