[Solved] Error in the exercise of oop [closed]
[ad_1] It is because there is no constructor in the Conta class. Because, in the child class ContaPoupanca, you called the constructor of the parent class which is Conta like this: parent::__construct($Agencia, $Codigo, $DataCriacao, $Titular, $Senha, $Saldo); Therefore, to make this work, the parent class Conta should have a constructor like this: public function __construct($Agencia, … Read more