I come from the background of PHP, and due to the lack of namespaces in the past, I used the Zend Framework “package 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 in the / Player / directory. He tried to do something similar in Java, but I had a name clash - I have the blah.Player package and the blah.Player class. How can I avoid this? What is the common practice in this regard?
source
share