Best practice: ordering of public/protected/private within the class definition?
问题 I am starting a new project from the ground up and want it to be clean / have good coding standards. In what order do the seasoned developers on here like to lay things out within a class? A : 1) public methods 2) private methods 3) public vars 4) private vars B : 1) public vars 2) private vars 3) public methods 4) private methods C : 1) public vars 2) public methods 3) private methods 4)private vars I generally like to put public static vars at the top, but then would a public static method