PrepAway - Latest Free Exam Questions & Answers

What would you do?

You’d like to use the class MyDBConnection that’s defined in the
MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace, but you want to
minimize *as much as possible* the length of the class name you have to type. What would
you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Import the MyGreatFramework namespace

B.
Import the MyGreatFramework\MyGreatDatabaseAbstractionLayer namespace

C.
Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer\MyDBConnection to a
shorter name

D.
Alias MyGreatFramework\MyGreatDatabaseAbstractionLayer to a shorter name


Leave a Reply

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