jvascript class構文 (ES2015)

http://qiita.com/niisan-tokyo/items/83582bc0646239cf6cb8
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Classes
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Operators/super
ES2015から導入された、class構文の使い方。

class MyParentClass {
	constructor(argv) {
	}
	MyMethod(argv) {
		// parent run
	}
	static MyStaticMethod(argv) {
		// parent static run
	}
	
	// プロパティも使える
	set propValue(value) { this.propValue = value; }
	get propValue()      { return this.propValue;  }
} 

class MyChildClass extends MyParentClass {
	constructor(argv) {
		super(...arguments); // これが無いとthisが使えない。必ず実行する。
	}
	MyMethod(argv) {
		super.MyMethod(argv);
		// child run
	}
}