110 likes | 183 Views
This presentation on C# Interface will acquaint you with a clear understanding of the fundamentals of C# programming. In this C# Tutorial for beginners, you will get a better understanding of what is an Interface in C#. we will start with an introduction to C# Interfaces explained, Then we will discuss why do we need interfaces. then we will go in-depth with the Implementation of the C# interface. <br><br>The topics covered in this presentation are:<br><br>1. Introduction to C# Interface<br>2. What is C# Interface<br>3. Why do we need a C# interface<br>4. Implementation of C# Interface<br>
E N D
Agenda What is C# Interface? Why do we need C# Interfaces? Implementation of C# Interface
What is C# Interface? In C#, Interface is like a blueprint of a class. As with abstract classes, any methods declared within an interface are abstract methods. It doesn’t have method body.
What is C# Interface? Syntax: public interface IDemo { int sum(); }
Demo Drawable Shape Tightly-Coupled They are used to build the loosely-coupled applications.
Demo Rectangle Circle Interface IDrawable Shape Loosely-Coupled They are used to build the loosely-coupled applications.