3 ms·
Java has the Foo/IFoo pattern. It's not a direct equivalence, but if you want to separate interface from implementation, you have that option.
by mikepurvis 8y ago
Java has the Foo/IFoo pattern. It's not a direct equivalence, but if you want to separate interface from implementation, you have that option.
- chrisseaton 8y ago> Java has the Foo/IFoo pattern. Are you thinking of C#?
- Quekid5 8y agoWhat? There's no real difference except spelling (aka syntax and convention).
- deleted 8y ago[deleted]
- mikepurvis 8y agoIt may be applicable there too; I just don't have any direct C# experience.
- sdinsn 8y agoExcept the Foo/IFoo pattern is more related to OOP than it is about separating interface from implementation. You wouldn't create Foo/IFoo classes if you knew for a fact that Foo will be the only implementation of IFoo