Is the following code allowed:
I coded it inside one of my class and I executed it in my startup program. It works perfectly.Code:public: ~Class() { blahblah }
From what Ive read from a book, it says class destructor forbids any kind of public in front of the tilde ~.
Can someone explain? Thanks in advance
Edit: I changed the "P" to small "p". Ive some typo error back then.