-
Sequence of Destructor
I don't understand why the sequence of the Destructor of these two classes are different? Does that make any difference?
Code:
class Date
{
public:
Date( int = 1, int = 1, int = 1990 );
~Date();
void print();
private:
......
};
class Date
{
public:
Date( int = 1, int = 1, int = 1990 );
void print();
~Date();
private:
...
};
-
sequence
It does not make a difference since these are only the declarations. They should however be grouped for better readiblity. Usually the constructor and the desctructor should be right next to each other.