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?
benefit of this setup (classes within an interface)?
You must be signed in to leave a comment
11 June 2021, 06:08
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.
11 June 2021, 13:22
thx for the reply. answered both of my questions. You deserve a medal! :)