PrepAway - Latest Free Exam Questions & Answers

Which interfaces could class C implement in order to allow each statement in the following code to work?

Which interfaces could class C implement in order to allow each statement in the following
code to work? (Choose 2) $obj = new C(); foreach ($obj as $x => $y) { echo $x, $y; }

PrepAway - Latest Free Exam Questions & Answers

A.
IteratorAggregate

B.
ArrayObject

C.
ArrayAccess

D.
Iterator


Leave a Reply

Your email address will not be published. Required fields are marked *