Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 3 / COLORROU
.CPP#include <ColorRound.h>
ColorRound::ColorRound(){
color=1;
//cout<<"Color round "<<getid()<<" was created"<<endl;
}
ColorRound::ColorRound(const Point &O, const double radius0, const int color0, int &id){
SetCenter(O);
SetRadius(radius0);
color=color0;
SetId(id);
//cout<<"Color round "<<getid()<<" was created"<<endl;
}
ColorRound::~ColorRound(){
//cout<<"Color round "<<getid()<<" was destroyed"<<endl;
}
inline void ColorRound::SetColor(const int color0){
color=color0;
}
inline const int ColorRound::GetColor(){
return color;
}
void ColorRound::printing(){
print();
cout<<"Color is "<<color<<endl;
}