📜  struct 中的 c++ 中的默认访问修饰符 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.469000             🧑  作者: Mango

代码示例1
A structure is a class defined with the struct keyword.
 Its members and base classes are public by default. 
  In practice, structs are typically reserved for data without functions. 
    When deriving a struct from a class/struct, default access-specifier for a base class/struct is public.