I had a quick question about naming conventions in Java. I read a few recommendations, but no one answered my specific question.
What word order should I use?
For example, I have an abstract class:
abstract class Requirement
If I wanted to create children, what should I name them?
Like this:
class RequirementOnlyPlayer extends Requirement
class RequirementOnlyConsole extends Requirement
class RequirementArgumentCount extends Requirement
Or like this:
class OnlyPlayerRequirement extends Requirement
class OnlyConsoleRequirement extends Requirement
class ArgumentCountRequirement extends Requirement
Or in some other way? I believe this is my first example, but I'm not sure.
Therefore, these requirements will be used:
addRequirement(new RequirementOnlyPlayer());
addRequirement(new RequirementArgumentCount(3));
Any help or feedback would be greatly appreciated! Sorry if this is a bit of a "nooby" question, I have pretty much experience with Java and programming in general, but for some reason I'm still not sure about that.
source
share