×

Loading...

Actually, the only different between Struct & Class is that: by default all members in Struct are public while they are private in Class. Both of them can have member Variables and Functions(methods). Ji Ang's answer is not proper.

guest (Zack)
(#36740@0)
2001-3-24 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

Back To Topic: 我找工作面试时的一个问题,Struct和Class有什么区别?我回答Struct 没有构造和析构函数,现在想想一定不对,谁知道,谢谢先。

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论