This appears to create an object from an interface; how does it work?

You’re defining an anonymous class that implements the interface Int, and immediately creating an object of type thatAnonymousClassYouJustMade.

Leave a Comment