現在來學習extends擴展,如果你想要覆蓋類定義的方法和變量,可以使用Extends。 Js代碼 var Animal = new Class({ initialize : function(age){