Question: The code snippet below translates a database user to a model user. Because their names are both User, you must use their fully qualified names, which is cumbersome. You do not have access to either of the imported classes' source code. How can you shorten the type names?

  1. Use import as to change the type name
  2. Create subtypes with shorter names
  3. Create interfaces with shorter names
  4. Create extension classes with shorter names

Answer: The correct answer of the above question is Option A:Use import as to change the type name