Interfaces in java

public static void saveObject(ISaveable objectToSave){  //here this function requires an interface reference

Player tim  = new Player("Tim",10,15);  //but tim referes to class reference but since class  player extends interface iSaveable we can pass it to above function like this
saveObject(tim);