Тᅠ
Object.toString() чи шо?
Size: a a a
Тᅠ
Тᅠ
SG
import c.stdio;
class A {
this() { printf("A::this()\n"); }
void show() { printf("A::show()\n"); }
}
class B : A {
this() { printf("B::this()\n"); }
void show() { super.show(); printf("B::show()\n"); }
}
int main( char[][] args ) {
B b = new B();
b.show();
return 0;
}
// output (as you would expect)
//A::this()
//B::this()
//A::show()
//B::show()
Тᅠ
Тᅠ
S
S
Т
Т