✅ 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?