Hi,
Ques What is the Interface in the .Net 5.0 ?
Interface
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 6, 2012, 1:59 PM EST
SenthilkumarRank #387 · 6.5K reputationPosted Mar 6, 2012, 7:01 PM EST
The interface is object oriented design and mostly it will not be changed when the framework new version comes.
The interface is pure abstract type in .net. It will have only the structure and there is no implementation. It cannot have any constructors and destructors. It can inherit from another interfaces. This is only way to support multiple inheritance in C#.
It is used to implement the generality or commonality across the system. It will not allow to create the object directly and inherited class should implement all the methods. The public is the default access modifier and it will not allow.
It will allow to use the indexer, property, events and methods.