---
title: "How to implement Explicit interface?"  
description: "How to implement Explicit interface?"  
author: "Hemant Patel"  
published: 2017-03-02  
updated: 2020-09-14  
canonical: https://www.mindstick.com/interview/23214/how-to-implement-explicit-interface  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How to implement Explicit interface?

```
public class Student : IDal          {          public string FirstName {get; set;}          public string LastName {get; set;}          void IDal.Add()             {              throw new NotImplementedException();             }          void IDal.Add()            {            throw new NotImplementedException();            }          }
```

## Answers

### Answer by Hemant Patel

```
public class Student : IDal          {          public string FirstName {get; set;}          public string LastName {get; set;}          void IDal.Add()             {              throw new NotImplementedException();             }          void IDal.Add()            {            throw new NotImplementedException();            }          }
```


---

Original Source: https://www.mindstick.com/interview/23214/how-to-implement-explicit-interface

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
