If we extend a class it is obvious that the members (of superclass) are implemented in the subclass. Also if we import a class(of a package) we can use its public methods (as if the importing methods are implemented in the current class itself).
Then how does import differ from extend in its functionality?