import std.stdio;
abstract class Base {
int i = 1;
}
class Sub : Base {
int i = 2;
}
void main() {
Sub s = new Sub;
Base b = s;
writeln(s.i, " : ", &s.i);
writeln(b.i, " : ", &b.i);
}
aW1wb3J0IHN0ZC5zdGRpbzsKCmFic3RyYWN0IGNsYXNzIEJhc2UgewogIGludCBpID0gMTsKfQoKY2xhc3MgU3ViIDogQmFzZSB7CiAgaW50IGkgPSAyOwp9Cgp2b2lkIG1haW4oKSB7CiAgU3ViIHMgPSBuZXcgU3ViOwogIEJhc2UgYiA9IHM7CgogIHdyaXRlbG4ocy5pLCAiIDogIiwgJnMuaSk7CiAgd3JpdGVsbihiLmksICIgOiAiLCAmYi5pKTsKfQ==