LastExceed
03/13/2020, 4:03 PMJames Shiell
03/13/2020, 4:04 PMLastExceed
03/13/2020, 4:05 PMGenerally, the contents of a class is sorted in the following order:
- Property declarations and initializer blocks
- Secondary constructors
- Method declarations
- Companion objectwhat about nested classes?
LastExceed
03/13/2020, 4:09 PMPut nested classes next to the code that uses those classes. If the classes are intended to be used externally and aren't referenced inside the class, put them in the end, after the companion object....I should have read the whole thing