📜  c++ struct vs class - C++ 代码示例

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

代码示例1
// In C++, a class and a struct are COMPLETELY IDENTICAL
// Except structs default to PUBLIC access and inheritance
// Whereas class defaults to PRIVATE.