C++??????????D???
???????????? ???????[ 2014/7/1 11:38:29 ] ????????C++ net
????????о???? C++ ????????????????е????????????????????????????????????????????????Щ????????????????????????????????е??????????????????????Щ????? C++ ?????????????? D ??????????????
????C++
???????幹????
????C++ ????
??????????????????
????class Foo
????{
????Foo(int x);
????};
????D ????
???????????? this ???????壺
????class Foo
????{
????this(int x) { }
????}
????????????
????C++ ????
?????????????????????????б??????á?
????class A { A() {... } };
????class B : A
????{
????B(int x)
????: A()// ???????????
????{...
????}
????};
????D ????
??????????????? super ?????????
????class A { this() { ... } }
????class B : A
????{
????this(int x)
????{...
????super();// ???????????
????...
????}
????}
????D ???????? C++ ??????????????????????????????е??κε???????????????D ??????????????????????????????????
????class A
????{int a;
????int b;
????this() { a = 7; b = foo(); }
????this(int x)
????{
????this();
????a = x;
????}
????}
?????????????ù???????????????????????????????????
????class A
????{int a = 7;
????int b;
????this() { b = foo(); }
????this(int x)
????{
????this();
????a = x;
????}
????}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11