<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<Script Language="JavaScript">
<!--
function Chool(){ //基类,学校
public://毫无意义
this.getName=function_getName;
}
function function_getName(strName){ //获取学校名字方法
return strName;
}
function Class(){ //继承类,班级
public:
this.getClass=function_getClass;
EXTENDS:
this.Parent=Chool;
this.Parent();
}
function function_getClass(strClassid){//获取班级ID方法
return strClassid;
}
var MyChool=new Chool();
var MyClass=new Class();
var Thename1="世界联合大学";
var Thename2="中国联合大学";
var TheClassid="10001";
alert(MyChool.getName(Thename1));
alert(MyClass.getName(Thename2));
alert(MyClass.getClass(TheClassid));
-->
</Script>