benefit of this setup (classes within an interface)?
Under discussion
Classes in an Interface (I'm quite sure I haven't seen this before). What is the purpose or benefit of doing it this way vs. having it outside of the interface and implementing the interface?
Not much that I know of. You can pack things together that should be in one place. Eg. enums or constants that should be available for all classes implementing that interface but also without these. Or you use it for data structures. But it is not really necessary. A matter of taste.
thx for the reply. answered both of my questions. You deserve a medal! :)
0
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.