C++ interview questions面试问题
问题1 :from http://www.careercup.com/question?id=17227667What will be the value of the variable 'var1' in class A? 答案da) 6 b)7 c) 5 d) undefined分析:调用子类的构造函数时,(1)会先调用父类构造函数构造父类成员部分,可见下
原创
2013-09-09 14:00:03 ·
1294 阅读 ·
0 评论