Struct inheritance in C++

后端 未结 6 647
情书的邮戳
情书的邮戳 2020-12-02 05:28

Can a struct be inherited in C++?

6条回答
  •  离开以前
    2020-12-02 05:44

    Of course. In C++, structs and classes are nearly identical (things like defaulting to public instead of private are among the small differences).

提交回复
热议问题