I am coming from a PHP background, and due to the lack of namespaces in the past I have used Zend Framework style “packages”. For example, if I have an abstract class Player and children Player_Human, Player_DumbComputer, Player_Minimax, etc. I would put Player in the main directory and put it’s children in a directory /Player/. It tried to do something similar in Java, but I got a name-clash — I have both a package blah.Player and a class blah.Player. How do I avoid this? What is the common practice regarding this?
Share
Java Package names are always in lower case while the Class names always start with an upper case letter and are camel case names (no underscores). So your structure should be: