This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
Really? 我觉得Class 是为了OOP而将 Struct 改造过来 的,因此虽然 Struct里可以有 member function,但如果C编译器里就会出问题,而在C++ 编译器里就可以过去。所以关于 private 和 public 的问题我同意你的,但后面的解释我同意wjiang的。
flying_snow
(飞雪浮冰)
(#36762@0)
Last Updated: 2001-3-24
This post has been archived. It cannot be replied.
Share
Report
Replies, comments and Discussions:
我找工作面试时的一个问题,Struct和Class有什么区别?我回答Struct 没有构造和析构函数,现在想想一定不对,谁知道,谢谢先。
枫下论坛主坛
/
工作学习
/
IT技术讨论