Показать сообщение отдельно
Старый 23.04.2007, 20:24   #1   
The VelloR
 
Аватар для RockVocal
 
Сообщений: 124
Регистрация: 05.03.2006

RockVocal вне форума Не в сети
Проблема с перекрытием метода в C++

Не получается перекрыть метод draw класса Shape в классе MyPoint,листинг классов ниже:

#pragma once
#include "Shape.h"


ref class MyPoint :
public Shape
{
public:
MyPoint(void);
void draw(Graphics^ c,int x,int y,int width,int heigth);

};


using namespace System:rawing;
using namespace System:rawing:rawing2D;
using namespace System::Windows::Forms;
ref class Shape abstract{
protected:
Color linecol;
int linewidth;
DashStyle linest;
Color zalcol;

protected:

void set_line_color(Color col);
void set_line_width(int width);
void set_line_st(int s);
void set_col_zal(Color c);
virtual void draw(Graphics ^c, int x, int y, int width, int heigth);

};

Что сделать надобно?
  Ответить с цитированием