Скачиваний:
9
Добавлен:
01.05.2014
Размер:
1.12 Кб
Скачать
// Copyright (C) 1991 - 1999 Rational Software Corporation

#include <iostream.h>

#include "TextInPentagon.h"

//##ModelId=47092F1A01B5
TextInPentagon::TextInPentagon(double centerX, double centerY, double size, char* text):Pentagon(centerX,centerY,size),Text(text, centerX, centerY), ID(++count_ID)
{
	cout << "Counstuctor: TextInPentagon object ID: " << ID << endl;
}

//##ModelId=470A154F0290
TextInPentagon::~TextInPentagon()
{
	// TODO: Add your specialized code here.
	cout << "Destructor: TextInPentagon object ID: " << ID << endl;
}

//##ModelId=470A2B400222
long TextInPentagon::count_ID = 0;

//##ModelId=470A2EDA034B
void TextInPentagon::draw()
{
	// TODO: Add your specialized code here.
	cout <<"TextInPentagon::draw() " << endl;
	Text::draw();
	Pentagon::draw();
}


//##ModelId=472F6259033C
double TextInPentagon::area() {
	return Pentagon::area();
}

//##ModelId=472F6259035B
void TextInPentagon::moveTo(double newX, double newY) {
	Pentagon::moveTo(newX,newY);
	Text::moveTo(newX,newY);
}

void TextInPentagon::writeIn(ostream& o) const {
	o << (*this);
}
Соседние файлы в папке LAB1_CONSOLE - final