[code] using namespace std; class B { public: void show(){puts("class B");} }; class D:public B { public: void showDDD(){puts("class D");} }; int main(int argc, char **argv) { void* p = new B; D* pd; pd = (D*)p; pd->showDDD(); return 0; } [/code] compiled by g++, the output is class D why?
class Person: def __init__(self, name): self.name = name def sayHi(self): print 'Hello, my name is', self.name p = Person('Swaroop') p.sayHi() 这两个name怎么理解? 新手,请莫见笑。
burberry outlet All said the woman get married after will become yellow face, whether they were never without charm? Of course not...