简介:这是PHP类继承 的详细页面,介绍了和php,有关的知识、技巧、经验,和一些php源码等。
class='pingjiaF' frameborder='0' src='http://biancheng.dnbcw.info/pingjia.php?id=332642' scrolling='no'><?php
class ClsPerson
{
var $personID;
var $personName;
function ClsPerson($personID,$personName)
{
//$this->personID=$personID;
//$this->personName=$personName;
echo "<script language=\"javascript\">window.alert('ClsPerson');</script>";
}
}
class ClsStudent extends ClsPerson
{
var $cardID;
function ClsStudent($personID ,$personName,$cardID)
{
parent::ClsPerson($personID,$personName);
echo "<script language=\"javascript\">window.alert('ClsStudent');</script>";
}
}
$student = new ClsStudent("3234","DEXTERLESLIE","440402");
?>