Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-10

is it possible to subclass a generic class?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dennis Poon

I want to do something like this but the compile complains.

Type
     generic TMyMap<TKey, TData> =class( generic TFPGMap<TKey, TData>)
       destructor Destroy; override;
       constructor Create;
     end;

I want to override some methods and destructor before my class is specialized later.

Is it possible? How?

Dennis

Reply by email