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

When would you use classes and when would you use namespaces?
A. Use classes to encapsulate code and represent objects, and namespaces to avoid symbol name collisions
B. Use classes for performance-sensitive code, and namespaces when readability matters more
C. Use namespaces for performance-sensitive code, and classes when readability matters more
D. Always use them; namespaces as always superior to classes

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.