what does tilde mean in c 2b 2b

Solutions on MaxInterview for what does tilde mean in c 2b 2b by the best coders in the world

showing results for - "what does tilde mean in c 2b 2b"
Linus
12 Jan 2019
1// ~ AKA a tilde is used to create destructors in classes. 
2
3class Entity{
4  public: 
5  	~Destructor();
6  	//This is a destructor, which destroys instances and can free up memory.
7};
8
9//Source for answer:
10// https://stackoverflow.com/questions/1395506/in-c-what-does-a-tilde-before-a-function-name-signify
11
12//Other Sources:
13// https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_74/rzarg/cplr380.htm