API design


A header interface is an explicit interface that mimics the implicit public interface of a class. Essentially you take all the public methods of a class and declare them in an interface. You can then supply an alternative implementation for the class. This is the opposite of a RoleInterface - I discuss more details and the pros and cons there.

if you found this article useful, please share it. I appreciate the feedback and encouragement

Find similar articles at the tag

API design