Following the proposed encapsulation pillar in OOP, I have the following doubt, when it is declared a daughter class, besides inheriting attributes and methods, does it also inherit the interface of its mother?
interface ContaUsuario {
public carregue($id,$nome);
}
class conta implements ContaUsuario {
protected $id;
private $nome;
public carregue($id,$nome){
$this->id = $id;
$this->nome = $nome;
}
}
When I declare the student class beyond it inherits this 2 attributes and 1 function does it also inherit the interface or would I have to re-create it?