C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
3
Reply
What is an Interface in C#?
Vinay Arora
12y
1.6k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
An interface is defined as a syntactical contract that all the classes inheriting the interface should follow. The interface defines the 'what' part of the syntactical contract and the deriving classes define the 'how' part of the syntactical contract. Interfaces are declared using the interface keyword. It is similar to class declaration. Interface statements are public by default.
Manish Kumar Choudhary
11y
0
Also Interface does not allow any access modifiers inside it and does not allow field declaration. While compiling it will validate and force the deriving class to implement the code for methods defined inside an interface.
Mohammed Feroze Anwar
11y
0
Interface concept makes the entire class abstract classes.... There will not be any kind of implementation in interface. implementation should be done in derived class.
indicates interface.
srikanth reddy
12y
0
What is a base class in C#?
What is type cast in C#?
Message