×

Loading...

struct is for ADT. there is no function inside a struct. class is for OOT, there are methods inside a class.

wjiang (wjiang)
(#36735@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技术讨论