Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 533 Bytes

File metadata and controls

28 lines (18 loc) · 533 Bytes

OOPS_Assignment-1

OOPS based Assignment with enqueue and dequeue

Classes

DoubleQueue Class
SquareQueue Class

Trait

QTrait 

Project Summary:

Two classes: DoubleQueue and SquareQueue mix in a trait.

A trait Queue which performs two functions of enqueue and dequque.

DoubleQueue enqueues the element after doubling them while SquareQueue enqueues the element after squaring them defined in their respective classes.

Dequeue method defined in trait will remove the first element from the queue.