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.