2012-11-03から1日間の記事一覧
constructorとは、クラスのインスタンスを初期化する命令のこと。constructorメソッドを定義するには、クラスのブロックの中でfunction定義を行う。例:class Blog { function Blog () { //constructor methodの中身をconstructor bodyと呼ぶ }}constructor…
constructorとは、クラスのインスタンスを初期化する命令のこと。constructorメソッドを定義するには、クラスのブロックの中でfunction定義を行う。例:class Blog { function Blog () { //constructor methodの中身をconstructor bodyと呼ぶ }}constructor…