-
C++ class vs Structure아무거나적어~ 2023. 2. 2. 10:33
둘이 굉장히 유사함.
차이점은 Class 는 기본적으로 private, Structure 는 기본적으로 public.
Class 는 상속을 염두에 두고 사용하는 것이고 Structure 는 여러 데이터를 모아서 쓰기 위해 사용하는 것이다
Structure vs class in C++ - GeeksforGeeks
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
www.geeksforgeeks.org
'아무거나적어~' 카테고리의 다른 글
[c++] complex class (0) 2023.02.03 [c++] lambda function and custom compare function (0) 2023.02.02 [visual studio] setting (0) 2023.01.11 파이썬이 콘솔 default setting (0) 2023.01.11 [c++] c++ cstype string (0) 2023.01.10