Zend
200-710 · Question #26
When would you use classes and when would you use namespaces?
Sign in or unlock 200-710 to reveal the answer and full explanation for question #26. The question stem and answer options stay visible for context.
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
Unlock 200-710 to see the answer
You've previewed enough free 200-710 questions. Unlock 200-710 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.