+ 1
Class implementing interfaces
A cass implementing interfaces can have their own function, and variables? independent from interfaces?
3 ответов
+ 3
Yes. It can have whatever any other class can, as long as it defines any methods that the interface expects.
+ 2
Yes. Interface is like a template and you can enhance the template by adding properties, methods, etc in a derived class.
0
Thank you!