+ 3

what is a interface in c# ?

19th Oct 2016, 6:26 PM
muhammad naufal
muhammad naufal - avatar
3 Réponses
+ 7
You can think of interfaces as contracts. Basically an interface defines a set of behaviours which any component that implements it must provide fuctionality to those behaviours otherwise you'll get a compiler error because you broke the contract. Furthermore to understand the entire concept try tutorialspoint or stackoverflow.
19th Oct 2016, 6:53 PM
Ousmane Diaw
0
An interface looks like a class, but has no implementation. The only thing it contains are declarations of events, indexers, methods and or properties. They’re great for putting together plug-n-play like architectures where components can be interchanged at will
26th Oct 2016, 5:58 AM
Ahmad Abdul-Aziz
Ahmad Abdul-Aziz - avatar
0
Is it not the same as the interfaces in java?
13th Nov 2016, 8:02 AM
Ferhat
Ferhat - avatar