Q:
    if struct can have the construtor/desctructor and memeber functions ? if so, what's the diff between struct& class?

A:
    Yes! and the diff is that: in Class ,the default variables access type is priavate, while public in struct. struct can also have constructor/destructor and can be inherited from base class also,etc.

相关文章:

  • 2022-02-18
  • 2022-01-25
  • 2022-01-29
  • 2021-11-13
  • 2021-08-09
  • 2021-07-16
  • 2021-07-12
  • 2021-06-18
猜你喜欢
  • 2021-09-16
  • 2022-03-03
  • 2021-06-28
  • 2021-05-13
  • 2021-10-25
  • 2022-12-23
  • 2021-12-12
相关资源
相似解决方案