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 -05:00

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

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=36740