Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 1 Question 38 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 38
Topic #: 1
[All 200-710 Questions]

When would you use classes and when would you use namespaces?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

I'm leaning towards B. Classes for performance-sensitive code and namespaces when readability is the priority. Sounds like a reasonable approach to me.
upvoted 0 times
...
Twila
2 days ago
Option A seems the most logical choice. Classes are used for encapsulation and object representation, while namespaces help with name collision issues.
upvoted 0 times
...
Jonelle
12 days ago
But wouldn't namespaces be better to avoid symbol name collisions?
upvoted 0 times
...
Gerald
16 days ago
I agree with Celeste, classes are great for that purpose.
upvoted 0 times
...
Celeste
17 days ago
I think I would use classes to encapsulate code and represent objects.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77