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