Sounds like it.
I very much presume that you are familiar with interfaces, but in case not here is an example: