목록Class (1)
Scientia Conditorium
[C++] struct 와 class 의 차이점
[C++] struct 와 class 의 차이점 결론부터 말하자면 C++에서 struct와 class의 차이점은 없다. 먼저 isocpp의 답변부터 살펴보도록 하자. https://isocpp.org/wiki/faq/classes-and-objects#struct-vs-class Standard C++ isocpp.org What’s the difference between the keywords struct and class? The members and base classes of a struct are public by default, while in class, they default to private. Note: you should make your base classes explicitly ..
프로그래밍/C++
2022. 9. 17. 23:49