Skip to content

Instantly share code, notes, and snippets.

@S2
Created February 27, 2015 02:33
Show Gist options
  • Save S2/78f5336e0028354e92ce to your computer and use it in GitHub Desktop.
Save S2/78f5336e0028354e92ce to your computer and use it in GitHub Desktop.
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