ニュース

Learn the difference between classes and interfaces once and for all, then get started declaring, implementing, and extending interfaces in your Java programs ...
Creating an object using a constructor will only create objects of a specific type. Using a static factory in this way creates a nice separation between interface and implementation.