I am writing a model class for my application and I am wondering where I should define an enum that the class will use. Should it be in the class or outside of it?
If only the one class uses the enum, then you should define it inside your class. But if more then one class uses your enum, you should create it in it's own 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