logo

Crowdly

Browser

Add to Chrome

Vaata järgmist koodi: Plain text Copy to clipboard Open code in new ...

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

Vaata järgmist koodi:

Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax Highlighterclass 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; // ???

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; // ???

Expand

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