I have 2 quick questions about interface implementation.
1. Is there a way to require someone to implement a certain interface if they inherit from my base class?
2. I have a function that the user passes a class to as a parameter. Is there a way to make sure that that the passed class implements a certain class similar to what you can do with generic functions?
Thanks!
1. Is there a way to require someone to implement a certain interface if they inherit from my base class?
2. I have a function that the user passes a class to as a parameter. Is there a way to make sure that that the passed class implements a certain class similar to what you can do with generic functions?
Thanks!