class sealed Point cannot inerhit

H

Hex

hi all

it's my first message here, i have a problem with class Point
beacause this class is sealed. So i can not derive it

protected l class point3d : Point
{
point3d();

} ;

how can do that in other way ?
i want to use a new struct { int x,y,z } o a new class

thx in advance
claudio
 
A

Arne Vajhøj

it's my first message here, i have a problem with class Point
beacause this class is sealed. So i can not derive it

protected l class point3d : Point
{
point3d();

} ;

how can do that in other way ?
i want to use a new struct { int x,y,z } o a new class

Use composition instead of inheritance.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top