class LegemiddelVaneligPille extends LegemiddelVanelig implements LegemiddelPille { private int _antallPiller; private int _virkestoffPerPille; public int antallPiller() { return _antallPiller; } public int virkestoffPerPille() { return _virkestoffPerPille; } LegemiddelVaneligPille(int antallPiller, int virkestoffPerPille) { super(antallPiller * virkestoffPerPille); this._antallPiller = antallPiller; this._virkestoffPerPille = virkestoffPerPille; } }