Even though the class and file name are same, it still shows the same

how can i override this

Since you haven’t shown the code, I’m going to guess that your class-name is “Player”, whereas your filename is “player.cs”.
Either that, or you just need to restart the editor/reimport to force re-compilation.