I am using the Bukkit API to create Minecraft plugins. The Player interface can be called and used like so:
Player p = [insert player here];
String name = p.getName();
Player itself is an interface, whatever
p refers to after that first line is an instance of a class that implements the
Player interface. It is that class that determines which implementation of
getName() is called.