esimene=$a1; $this->teine=$a2; $this->loeVormist(); } public function leiaSumma(){ return $this->esimene+$this->teine; } public function vormiHTML(){ return "
"; } public function loeVormist(){ if(isSet($_REQUEST["t1"])){ $this->esimene=intval($_REQUEST["t1"]); $this->teine=intval($_REQUEST["t2"]); } } } $paar1=new Arvud(3, 8); ?>