Skip to content
Snippets Groups Projects
Commit 5a7f63dc authored by Sini Lähde's avatar Sini Lähde
Browse files

Upload New File

parent 2d9fbc03
Branches
No related tags found
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 register or to comment