+ 3
what is a interface in c# ?
3 Answers
+ 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.
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
0
Is it not the same as the interfaces in java?