微博上炸开锅了# Biology - 生物学
b*e
1 楼
1. what is the diff between struct and class? my answer is member variable
in struct is public by default, but class is private, but the interviewer
usually isn't satisfied about this answer.
Is there any other diffs?
2. map用什么实现的?
3. 在构造函数中,在inialize list里初始化成员变量相比在函数体中初始化有什么好处?
4。什么类型的成员变量必须在inialize list中初始化,我回答reference type have to be inialized, what else?
in struct is public by default, but class is private, but the interviewer
usually isn't satisfied about this answer.
Is there any other diffs?
2. map用什么实现的?
3. 在构造函数中,在inialize list里初始化成员变量相比在函数体中初始化有什么好处?
4。什么类型的成员变量必须在inialize list中初始化,我回答reference type have to be inialized, what else?