Is it a good coding style to have multiple classes in a single file? What are the disadvantages when we don’t have the filename same as the class name ?
Thanks,
Omkar
Is it a good coding style to have multiple classes in a single file? What are the disadvantages when we don’t have the filename same as the class name ?
Thanks,
Omkar
*In reply to o-hassan:*If all your classes are defined inside a package, the compiler does not care if the classes are in a single file or one file per class (except maybe if you had 100,000 files)
Two key advantages of keeping classes in separately named files are