Hi I have this..
class BaseUnit;
...
class ResizeBorder : Shape
...
class Shape : BaseUnit
{
ResizeBorder a = new ResizeBorder();
}
(The classes offcourse has implementations)
When i do this i get a stackOverFlowException.
If ResizeBorder dosent inherit from shape it works perfeckt...Am I doing
someth?ng wrong? Or is the StackOverFlow maybe caused ba something else wich
first shows when i use the above form?
Anders
a shape has a resize border (you allocate one in the constructor)
a resize border is a shape (by inheritance)
so a resize border has a resize border
the resize border of a resize border is a shape
so the resize border of a resize border has a resize border
...
Bruno.
> Hi I have this..
>
[quoted text clipped - 17 lines]
>
> Anders
Alvin Bruney [MVP] - 19 May 2004 19:24 GMT
hmmm,
beware the dangers of inheritance

Signature
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
>a shape has a resize border (you allocate one in the constructor)
> a resize border is a shape (by inheritance)
[quoted text clipped - 26 lines]
>>
>> Anders