I am fairly new at programming (especially in java) and had a question regarding inheritance in java. I understand the syntax for inheritance (class newPlayer extends Player) but am wondering if all the source code or something has to be in the same folder or imported or something for java to detect it.
Im working on a school assignment and had to download the .java class file and inherit from it. I am also using eclipse to work on this project. Right now I'm just getting the message that I need to create a Player class. hope this all makes sense!! ANy help would be much appreciated.
class newPlayer extends Playerit kind of seems like you want to create an instance ofPlayer, but maybe not. If you do you just have to sayPlayer newPlayer = new Player();But that wont get rid of your error.