Zend
200-710 · Question #26
200-710 Question #26: Real Exam Question with Answer & Explanation
The correct answer is A. Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions. See the full explanation below for the reasoning.
Question
When would you use classes and when would you use namespaces?
Options
- AUse classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
- BUse classes for performance-sensitive code, and namespaces when readability matters more
- CUse namespaces for performance-sensitive code, and classes when readability matters more
- DAlways use them; namespaces are always superior to classes
Community Discussion
No community discussion yet for this question.