Back to Browse

Interface in C# | Part One | (C# Tutorials)

1.3K views
May 21, 2018
24:37

What is the interface in C#? What is need of interface? or Why should we use interface? What is the interface: - An interface is the only declaration of properties, Methods, events, indexers. - Interface member by default public. we can not specify the modifier to the interface member. - Interface member can not a definition. - We can inherit more than one interface in a class. - once we inherit interface in the class. We must provide them definition of the interface member. - We can not create the object interface. - An interface can not contain fields, operators and instance constructor. In order to work with the interface, we use "interface " keyword to create the interface. and we use "I" naming prefix of an interface. What is need of interface? or Why should we use interface? - It is used to Decouple the application. - It is used for Dependency Injection. - It is used for Test isolation and Mocking. - It is used for Extensible. other videos: https://www.youtube.com/watch?v=SM5tNdVmgqM https://www.youtube.com/watch?v=xbIgPwaAwjQ&t=9s https://www.youtube.com/watch?v=Cow5nWIOx8I&t=1064s https://www.youtube.com/watch?v=SM5tNdVmgqM&t=15s https://www.youtube.com/channel/UCHz3VKD7WQRbuwVflWBy2mw Website: www.programmingwithshri.com

Download

0 formats

No download links available.

Interface in C# | Part One | (C# Tutorials) | NatokHD