function __construct($name) {
$this->name = $name;
}
function getName() {
return $this->name;
}
}
$tesla = new Car("Model X");
echo $tesla->getName();
?>
Oh yea maybe he wants something like this
Обсуждают сегодня