---
title: "What is the difference between class and an Interface?"  
description: "What is the difference between class and an Interface?"  
author: "Sumit Kesarwani"  
published: 2014-01-27  
updated: 2020-09-17  
canonical: https://www.mindstick.com/interview/1893/what-is-the-difference-between-class-and-an-interface  
category: "c#"  
tags: ["c#"]  
reading_time: 2 minutes  

---

# What is the difference between class and an Interface?

Abstract classes can have implementations for some of its members, but the interface can't have implementation for any of its members.

**Interfaces cannot have fields where as an abstract class can have fields.**

An interface can inherit from another interface only and cannot inherit from an abstract class, where as an abstract class can inherit from another abstract class or another interface.

A class can inherit from multiple interfaces at the same time, where as a class cannot inherit from multiple classes at the same time.

Abstract class members can have access modifiers where as interface members cannot have access modifiers.

## Answers

### Answer by Sumit Kesarwani

Abstract classes can have implementations for some of its members, but the interface can't have implementation for any of its members.

**Interfaces cannot have fields where as an abstract class can have fields.**

An interface can inherit from another interface only and cannot inherit from an abstract class, where as an abstract class can inherit from another abstract class or another interface.

A class can inherit from multiple interfaces at the same time, where as a class cannot inherit from multiple classes at the same time.

Abstract class members can have access modifiers where as interface members cannot have access modifiers.


---

Original Source: https://www.mindstick.com/interview/1893/what-is-the-difference-between-class-and-an-interface

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
