팔만코딩경
/
Library DB
/
[C++ Primer Plus] 12. Classes and Dynamic Memory Allocation
Search
Share
2️⃣

[C++ Primer Plus] 12. Classes and Dynamic Memory Allocation

간단소개
팔만코딩경 컨트리뷰터
ContributorNotionAccount
주제 / 분류
C++
Scrap
태그
9 more properties
[C++ Prime Plus] 12. Classes and Dynamic Memory Allocation
C++은 Memory allocation을 runtime에 정하는 방식이다. C++은 Dynamic Memory allocation을 위해 new와 delete 연산자를 사용한다. 이로 인해, 우리는 새로운 문제를 풀어야만 한다. C++은 다음 멤버 함수를 자동으로 만들어낸다. 만약 생성자가 없으면, default constructor를 만들어낸다. 따로 정의하지 않았다면, default destructor를 만들어낸다. 따로 정의하지 않았다면, copy constructor를 만들어낸다. 따로 정의하지 않았다면, = operator를 만들어낸다.
https://ri3n.tistory.com/101
Made with