📄 samplestatic.as
字号:
package org.kingda.book.basicoop.inheritance
{
import flash.display.Sprite;
public class SampleStatic extends Sprite
{
public function SampleStatic() {
//trace (Extender.foo);
//Extender.hello();
Extender2.test();
}
}
}
class Base {
static const foo:String = "www.kingda.org";
static function hello():void {
trace ("Base.test()");
}
}
class Extender extends Base{
/*
static const foo:String = Base.foo;
static function hello():void {
Base.hello();
}
*/
static function test():void {
trace (foo);
hello();
//trace (Extender.foo);
}
}
class Extender2 extends Extender{
/*
static const foo:String = Base.foo;
static function hello():void {
Base.hello();
}
*/
static function test():void {
trace (foo);
hello();
//trace (Extender.foo);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -