/** * Constructs a OrderedListAsLinkedList with the given size. */ public function __construct() { parent::__construct(); $this->list = new LinkedList(); }
/** * Constructs a OrderedListAsArray with the given size. * * @param integer size The size of this list. */ public function __construct($size = 0) { parent::__construct(); $this->array = new BasicArray($size); }