dynamic needs pointer
Constructor
- static - just constructor
- dynamic - new keyword
Destructor
- delete variable
- ~Constructor
Whenever a call to destructor is made , the allocated memory to the object is not released but the object is no longer accessible in the program. But delete completely removes the object from memory.
copy constructor // copy assignment operator (복사생성자/ 대입연산자)
c++을 공부하고 있다. 나는 c/c++언어가 매력적이라고 생각한다. 익숙해서 그런가? 갑자기 뜬금없는 이야기긴한데, 수능영어 공부를 하다보면 조동사 전치사 어쩌구 저쩌구 알지도 못하고 실제로 쓰지도 않는 어려운 단어들을 붙여서 학생들에게 가르쳐주는 많은 책들을 볼 수 있다. 컴퓨터 언어는 다르다. 복사생성자라고 이름이 붙여졌으면 적어도 왜 그런 단...
https://sonofgodcom.wordpress.com/2018/11/15/copy-constructor-copy-assignment-operator-%EB%B3%B5%EC%82%AC%EC%83%9D%EC%84%B1%EC%9E%90-%EB%8C%80%EC%9E%85%EC%97%B0%EC%82%B0%EC%9E%90/



Seonglae Cho