Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 12 / LAB1_CONSOLE - final / Drawable
.cpp// Copyright (C) 1991 - 1999 Rational Software Corporation
#include "Drawable.h"
#include <iostream.h>
//##ModelId=470A1656009C
long Drawable::count_ID = 0;
//##ModelId=470923E80242
void Drawable::draw()
{
// TODO: Add your specialized code here.
// cout << "Error: Drawable::draw() virtual function call." << endl;
}
//##ModelId=470A16D0007D
Drawable::Drawable():
ID(++count_ID)
{
// TODO: Add your specialized code here.
cout << "Counstuctor: Drawable object ID: " << ID << endl;
}
//##ModelId=470A1CDC0177
Drawable::~Drawable()
{
// TODO: Add your specialized code here.
cout << "Destructor: Drawable object ID: " << ID << endl;
}
Соседние файлы в папке LAB1_CONSOLE - final