2007-05-04から1日間の記事一覧
Javaでいうところの public class Foo { public Foo(String s) { ... } public Foo(SomeClass x) { this(x.toString()); } がやりたいのですが、 class Foo { Foo(string s) { ... } Foo(int x) { Foo(x + ""); } } だと→ 共通部分を関数にしてください。 [1…
Javaでいうところの public class Foo { public Foo(String s) { ... } public Foo(SomeClass x) { this(x.toString()); } がやりたいのですが、 class Foo { Foo(string s) { ... } Foo(int x) { Foo(x + ""); } } だと→ 共通部分を関数にしてください。 [1…