3 ms·
you've never had to only have 1 class per file. You can only have 1 public class per file however. You can also nest classes in other classes for quick little
by ryanobjc 13y ago
you've never had to only have 1 class per file. You can only have 1 public class per file however. You can also nest classes in other classes for quick little data types you need locally.
So the notion that every single last tiny class has it's own file hasn't ever been true (even if thats the coding style in a lot of code).
- kasey_junk 13y agoBut if I have an interface and a couple of implementations I'm back to multiple files right?
- mason55 13y agoNot in scala, no.