Possible Duplicate:
Is it a bad practice to have multiple classes in the same file?
Is it advisable to create multiple classes within a .cs file or should each .cs file have an individual class?(Class file name also Animal.cs)
public class Animal { } public class Person { } public class Utility { }
Simply say good practice is one class from one file. BUT if your application is quite small you can use several classes in one file.
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