What would you do?

You’d like to use the class MyDBConnection that’s defined in the MyGreatFrameworkMyGreatDatabaseAbstractionlayer namespace, but you want to minimize *as much as possible* the length of the class name you have to type.

What would you do?
A . Import the MyGreatFramework namespace
B . Import the MyGreatFrameworkMyGreatDatabaseAbstractionlayer namespace
C . Alias MyGreatFrameworkMyGreatDatabaseAbstractionlayerMyDBConnection to a shorter name
D . Alias MyGreatFrameworkMyGreatDatabaseAbstractionlayer to a shorter name

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments