From: shoko2004@hotmail.com (shoko)
Subject: oo programing question
Date: 7 Dec 2003 13:14:40 -0800
Date: 2003-12-07T13:14:40-08:00 [thread overview]
Message-ID: <4948f537.0312071314.191dcf6b@posting.google.com> (raw)
here is my generic package:
generic
type Element_Type is private;
package queue is
type Queue is abstract tagged private;
type newqueue is new Queue ;<-- how to create new queue type?
procedure Init( Q: in out Queue) is abstract;
private
type Queue is abstract tagged
record
value:Element_Type;
end record;
end queue;
i need to create a new abstract type(newqueue) that will inherit from Queue.
then need to put the new type(newqueue) in the same generic Queue package,
and to add a new method to the new abstract type.
the reason that the new abstract type(newqueue) should be in the same package is:
i have a type that inherit from Queue
and now i need a new type that inherit from the new abstract type (newqueue)
and will be the same as the one that inherit from Queue.
how can i do it?
thanks
next reply other threads:[~2003-12-07 21:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-07 21:14 shoko [this message]
2003-12-08 19:04 ` oo programing question Martin Krischik
-- strict thread matches above, loose matches on Subject: below --
2003-12-06 19:01 shoko
2003-12-06 20:18 ` Stephen Leake
2003-12-07 14:01 ` Martin Krischik
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox