Lesson 19 of 20 · +130 xp

Constructor

__construct method.

Explained simply

Your task

Write: function __construct($n) { $this->name = $n; }

constructor-php.php
← Back