logo

Crowdly

Browser

Add to Chrome

Vaata järgmist koodi: class Pangakonto { private float $saldo; ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Vaata järgmist koodi:

class Pangakonto {

private float $saldo;

public function __construct(float $algSaldo) {

$this->saldo = $algSaldo;

}

public function getSaldo(): float {

return $this->saldo;

}

}

$konto = new Pangakonto(100.0);

print $konto->saldo; // ???

Mis juhtub?

0%
0%
✅
0%
More questions like this

Want instant access to all verified answers on moodle.taltech.ee?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome