⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sushi.as

📁 精通Actionscript 3.0 书籍源代码 非常实用
💻 AS
字号:
package zoo {  // The Sushi class represents one of the types of food a pet can eat  public class Sushi extends Food {    // The amount of calories in a Sushi object, if no specific     // amount is indicated        private static var DEFAULT_CALORIES:int = 500;        // Constructor    public function Sushi (initialCalories:int = 0) {      // If no valid calorie amount is specified...      if (initialCalories <= 0) {        // ...give this Sushi object the default amount        initialCalories = Sushi.DEFAULT_CALORIES;      }      // Invoke the Food class constructor      super(initialCalories);      // Give this food item a name      setName("Sushi");    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -