Sorting methods in class file by access modifiers is good or wrong habit?
Which are another methods for structure of class file?
The important thing with coding standards as that they are documented, well known by your team and that they are applied consistently.
It does also help if they aren't too "off-the-wall" compared to the coding standards adopted across the industry.
In this case, the company I am working at currently has a similar policy, which is the place the class in a particular order, with properties, constructors, public methods then private methods.
I have also worked in locations where the private methods are placed close the public methods that consume them - but I have to admit that this tends to get messy as the whole idea of extracting the logic into a separate method was to get re-use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With