Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Java by mimi ( 7 years ago )
public abstract class Resept{
private static int counter = 0;
private int reseptId;
protected int pasientId;
protected Legemiddel legemiddel;
protected Lege utskrivendeLege;
protected int reit;
public Resept(Legemiddel legemiddel, Lege utskrivendeLege, int pasientId, int reit){
this.legemiddel = legemiddel;
this.utskrivendeLege = utskrivendeLege;
this.pasientId = pasientId;
this.reit = reit;
reseptId = counter++;
}
public int hentId(){
return reseptId;
}
public Legemiddel hentLegemiddel(){
return legemiddel;
}
public Lege hentLege(){
return utskrivendeLege;
}
public int hentPasientId(){
return pasientId;
}
public int reit(){
return reit;
}
public boolean bruk(){
return(reit != 0);
}
abstract public String farge();
abstract public double prisAaBetale();
}
Revise this Paste
Parent: 98975
Children: 98977