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:

Dona
3 months ago
D? So, I should use namespaces to solve all my programming problems, even if I'm writing 'Hello, World!'? Brilliant!
upvoted 0 times
Peggy
29 days ago
A) Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
upvoted 0 times
...
Markus
30 days ago
B) Use classes for performance-sensitive code, and namespaces when readability matters more
upvoted 0 times
...
Brittni
1 months ago
A) Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
upvoted 0 times
...
...
Mable
3 months ago
I'm going with A too. Can't go wrong with the classic 'classes for objects, namespaces for name resolution'.
upvoted 0 times
...
Annice
3 months ago
D? Seriously? Namespaces are not always superior to classes. That answer is just ridiculous.
upvoted 0 times
Geoffrey
1 months ago
C) Use namespaces for performance-sensitive code, and classes when readability matters more
upvoted 0 times
...
Rima
1 months ago
B) Use classes for performance-sensitive code, and namespaces when readability matters more
upvoted 0 times
...
Freida
2 months ago
A) Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
upvoted 0 times
...
...
Gaston
3 months ago
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
3 months 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
Louisa
26 days ago
Definitely, it's important to use the right tool for the job.
upvoted 0 times
...
Chau
27 days ago
So, it seems like using classes for encapsulation and namespaces for avoiding collisions is the way to go.
upvoted 0 times
...
Matthew
29 days ago
Yes, and namespaces are useful for avoiding symbol name collisions.
upvoted 0 times
...
Wade
1 months ago
I agree, classes are great for encapsulating code and representing objects.
upvoted 0 times
...
Octavio
2 months ago
A) 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
...
Wilson
2 months ago
B) Use classes for performance-sensitive code, and namespaces when readability matters more
upvoted 0 times
...
Glenna
2 months ago
A) Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
upvoted 0 times
...
...
Jonelle
3 months ago
But wouldn't namespaces be better to avoid symbol name collisions?
upvoted 0 times
...
Gerald
3 months ago
I agree with Celeste, classes are great for that purpose.
upvoted 0 times
...
Celeste
3 months ago
I think I would use classes to encapsulate code and represent objects.
upvoted 0 times
...

Save Cancel