What is a destructor? Can it be overloaded?
What is a default constructor? Can we provide one for our class?
So I know that after you write a constructor in a class the default constructor goes away, so you have to start initializing every object. However, is there a way to write a default constructor so that you don't have to do this?
Explain the purpose of the keyword volatile.
What is the use of volatile keyword in C/C++? What is the difference between declaring a variable volatile
and not declaring it as volatile
?