15.09.2010, 10:42. Просмотров 848. Ответов 13
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| class Date
{
public:
Date(int dd = 0, Month mm = Month(0), int year = 0);
//Деструктор
~Date(){};
//Класс исключений
class Bad_date
{
public:
Bad_date(short);
string& viewing_ex();
private:
string error;
};
private:
int day, year;
Month month;
static Date default_date; // дата по умолчанию
}; |
|
нужен ли деструктор для class Bad_date или всю работу выполнит ~Date(){};
спасибо за ответы.