批改状态:合格
老师批语:
<?php
namespace point
{
require 'road.php';
use road\Point as newpoint;
class Point
{
public $pointName;
function __construct($pointName)
{
$this->pointName = $pointName;
return $this->pointName;
}
}
echo (new newpoint('青园路日辉路'))->pointName;
}点击 "运行实例" 按钮查看在线实例
<?php
namespace road
{
class Point
{
public $pointName;
function __construct($pointName)
{
$this->pointName = $pointName;
return $this->pointName;
}
}
}点击 "运行实例" 按钮查看在线实例
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号