From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,933ebd8abdfd4df1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-07 13:14:40 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: shoko2004@hotmail.com (shoko) Newsgroups: comp.lang.ada Subject: oo programing question Date: 7 Dec 2003 13:14:40 -0800 Organization: http://groups.google.com Message-ID: <4948f537.0312071314.191dcf6b@posting.google.com> NNTP-Posting-Host: 217.132.239.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1070831680 8709 127.0.0.1 (7 Dec 2003 21:14:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 7 Dec 2003 21:14:40 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3210 Date: 2003-12-07T13:14:40-08:00 List-Id: 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