0
What does this sign(~) mean?
I am at the "More On Classes" step "Separate Files for Classes" I follow the instructions in "Creating a new class" and instead of having this in MyClass.cpp: #include "MyClass.h" MyClass::MyClass() { //ctor } I have this: #include "MyClass.h" MyClass::MyClass() { //ctor } MyClass::~MyClass() { //dtor } I cannot figure out why and what does the sign (~) mean? Sincerely
3 odpowiedzi
+ 4
To distinguish btw constructor and destructor .
+ 1
Give a read to destructors.