Debug.Log

  • 홈
  • 태그
  • 방명록

struct와 class 차이 1

struct와 class 차이

struct와 class 차이c++에서 struct와 class는 무슨 차이가 있을까?class는 객체지향적으로, 멤버 변수에 대한 접근 권한을 설정할 수 있고, 생성자, 메소드를 추가할 수 있고, 상속도 되지만 struct는 안된다!그런 줄 알았는데 아니었다. struct에서도 다 된다. (C++) struct#include #include ​ using namespace std; ​ struct Sample { private: int val; public: Sample() { val = 9; } ​ void Print() { cout

아카이빙/C, C++ 2018.05.27
이전
1
다음
더보기
프로필사진

Debug.Log

  • 분류 전체보기 (102)
    • 아카이빙 (101)
      • BOJ (30)
      • Unity3D (8)
      • C, C++ (11)
      • C# (32)
      • Clean Code (1)

Tag

Regex, 스타크래프트, C#, sizeof, 정규표현식, C, 유니티, unity3D, 인터페이스, Python, 안드로이드, dp, BFS, Android, node.js, C++, 데이터마이닝, 알고리즘, dynamic programming, 동적 프로그래밍,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • facebook
  • 디지털미디어랩

티스토리툴바