Definition of component DEQUE as an extension to QUEUE.

Integrating Extension and Specialization Inheritance
by Walid Al-Ahmad and Eric Steegmans
Listing 6. Definition of component DEQUE as an extension to QUEUE.


component DEQUE extends QUEUE
feature
     Tail : INTEGER                       -- index to first available space
                                          from other end of the queue.
     Rear : INTEGER is
     AddEnd(elm : REAL) is
     RemoveEnd :  REAL is
end

Upcoming Training Events

0 AM
Visual Studio Live! San Diego
September 8-12, 2025
Live! 360 Orlando
November 16-21, 2025
Cloud & Containers Live! Orlando
November 16-21, 2025
Data Platform Live! Orlando
November 16-21, 2025
Visual Studio Live! Orlando
November 16-21, 2025