KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am developing a set of classes that implement a common interface . A consumer of my library shall expect each of these classes to implement a certain set of static functions. Is there anyway that I can decorate these class so that the compiler will catch the case where one of the functions is not implemented. I know it will eventually be caught when building the consuming code. And I also know how to get around this problem using a kind of factory class. Just curious to know if there is any syntax/attributes out there for requiring static functions on a class. Ed Removed the word 'interface' to avoid confusion.
Tags (comma-separated)
Save Edits
Cancel