
I is for Interface
Coding Blocks
00:00
Is There a Constructor Method Signature?
If you want to define a constructor method signature that other classes would have to implement, then really what you want to do is create a base class for someone else to inherit from. Maybe an abstract class isn't necessary for your particular use case. I just I think where I get hung up on it is with new time about generic functions. One of the restrictions that you can place on the generic function is the new keyword which means that whatever class you're genericalizing needs to have an instructor that takes no arguments.
Transcript
Play full episode