Created
February 27, 2015 02:33
-
-
Save S2/78f5336e0028354e92ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hoge{ | |
constructor(){ | |
this.overRidableMethod() | |
} | |
public overRidableMethod():void{ | |
} | |
} | |
class HogeDash extends Hoge{ | |
// オーバーライド | |
public overRidableMethod():void{ | |
} | |
} | |
class HogeExtend extends Hoge{ | |
constructor(){ | |
super(); | |
this.addMethod() | |
} | |
// 追加メソッド | |
public addMethod(){ | |
} | |
} | |
class HogeDashExtendPlanA extends HogeDash{ | |
// 追加メソッド | |
public addMethod(){ | |
} | |
} | |
class HogeDashExtendPlanB extends HogeExtend { | |
// オーバーライド | |
public overRidableMethod():void{ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment