Skip to content
Snippets Groups Projects
Commit de928df8 authored by Leevi Sirkkilä's avatar Leevi Sirkkilä
Browse files

Upload New File

parent bc9b2596
Branches
Tags
No related merge requests found
public class KantaAsiakas extends Asiakas{
private int alennusprosentti;
public KantaAsiakas(String asiakasNumero, String nimi,
double ostojaTehty, int alennusprosentti) {
super(asiakasNumero, nimi, ostojaTehty);
this.alennusprosentti = alennusprosentti;
}
@Override
public int getAlennusprosentti() {
return super.getAlennusprosentti() + alennusprosentti;
}
public void setAlennusprosentti(int alennusprosentti) {
this.alennusprosentti = alennusprosentti;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment