# Avoiding class name conflicts

If two classes with the same class name are imported, the compiler will throw an error, indicating that only one of the classes should be imported, or both should be explicitly named in the code and not imported.

For example, the following code imports two classes with the name CustomClass, and then references one of them without the fully qualified name:

    import pkg.CustomClass;
    import pkg2.CustomClass;

    var instanceVar:CustomClass = new CustomClass();

Because the compiler can't determine which class is being referenced in the `var` statement, it generates an error. To avoid this problem, use fully qualified class names when referencing a class.