Interface c# | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Interface c#

Can interface contain class?

6th Nov 2019, 9:40 AM
Lilit
Lilit - avatar
1 Antwort
+ 7
All of the methods in an interface are abstract. An interface cannot contain instance fields. The only fields that can appear in an interface must be declared both static and final. An interface is not extended by a class; it is implemented by a class.
6th Nov 2019, 11:50 AM
Mohammed Qadir khan
Mohammed Qadir khan - avatar