+ 1

Class implementing interfaces

A cass implementing interfaces can have their own function, and variables? independent from interfaces?

9th Nov 2016, 1:01 PM
Benedek Máté Tóth
Benedek Máté Tóth - avatar
3 ответов
+ 3
Yes. It can have whatever any other class can, as long as it defines any methods that the interface expects.
9th Nov 2016, 1:19 PM
Islay
Islay - avatar
+ 2
Yes. Interface is like a template and you can enhance the template by adding properties, methods, etc in a derived class.
15th Nov 2016, 10:27 PM
Jeri Mias
Jeri Mias - avatar
0
Thank you!
9th Nov 2016, 1:24 PM
Benedek Máté Tóth
Benedek Máté Tóth - avatar