Computer Science, asked by Makwanasunil9228, 11 months ago

What is an interface in C#?

Answers

Answered by omegads04
0

Interface, in C#, is a code structure that defines a contract between an object and its user.In general, an interface is used to describe a set of related functionalities that can be implemented in a class or struct. It enables a class to inherit multiple behaviors defined in multiple interfaces.

Answered by IntrovertAngel
0

\LARGE{\color{t}{\textsf{\textbf {\underline{ Anѕwєr : }}}}}

  • Interface in C# is a blueprint of a class. It is like abstract class because all the methods which are declared inside the interface are abstract methods. It cannot have method body and cannot be inst.antiated. It is used to achieve multiple inheritance which can't be achieved by class.
Similar questions