<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="javascript/mootools.js"></script>
<title></title>
<script type="text/javascript">
var Animal = new Class({
getAge:function(){alert("this is the first Parent.");}
});
var Cat = Animal.extend({
getAge:function(){
this.parent();
alert("this is the second Parent.");
}
});
var homeCat=Cat.extend({
getAge:function(){
alert("this is the third Parent.");
this.parent();
}
});
var myCat = new homeCat();
myCat.getAge();
</script>
</head>
<body>
</body>
</html>
prk/彭仁夔