Class implementing interfaces | Sololearn: Learn to code for FREE!

+1

Class implementing interfaces

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

11/9/2016 1:01:52 PM

Benedek Máté Tóth

3 Answers

New Answer

+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