logo

Crowdly

A kód Hello from parent -et ír ki. class ParentClass {     public function ...

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

A kód Hello from parent-et ír ki.

class ParentClass {

    public function hello() {

        echo "Hello from parent";

    }

}

class ChildClass extends ParentClass {

    public function hello() {

        echo "Hello from child";

    }

}

$obj = new ChildClass();

$obj->hello();

0%
100%
More questions like this

Want instant access to all verified answers on moodle.njszki.hu?

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