Додати до Chrome
class Mobile implements (iFigure, iData, iFunction) {…}
class Mobile extends iFigure, iData, iFunction {…}
class Mobile implements iFigure iData iFunction {…}
class Mobile implements iFigure, iData, iFunction {…}
class Mobile implements {iFigure}, {iData}, {iFunction} {…}
class Mobile implements {iFigure} {iData} {iFunction} {…}
self
this
implements
::
super
extends
interface
instanceof
final
В класі-насліднику
Можна і в самому абстрактному класі, і в класі-насліднику
В самому абстрактному класі
В інтерфейсі
Всі відповіді вірні
В 1 і 3
В 1 і 2
Тільки в 3
Тільки в 2
Тільки в 1
В 2 і 3
Так
Ні
self :: function printPerson($person){…}
static function printPerson($person){…}
this->static -> function printPerson($person){…}
static -> $retirenmentAge = 65;
static $retirenmentAge = 65;
self ::$retirenmentAge = 65;
static -> function printPerson($person){…}
this->static $retirenmentAge = 65;
function _construct($name, $age){
$this->name = $name; $this->age = $age;}
__constructor($name, $age){ $this->name = $name; $this->age = $age;}
function __constructor($name, $age){ $this->name = $name; $this->age = $age;}
function _constructor($name, $age){
_constructor($name, $age){
function __construct($name, $age){ $this->name = $name; $this->age = $age;}