My teacher gave me a sample code, but I'm a bit confused.
class CBook
{
...
pubic:
CBook();
CBook(string Title, string Auther, int Year); // I know this is the constructor
~CBook(); // and this is the destructor
};
I wish to know the use of CBook();
, is this line of code really necessary?
Thanks