---
title: "Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class?"  
description: "Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class?"  
author: "Sophia Morrow"  
published: 2017-12-21  
canonical: https://answers.mindstick.com/qa/31899/why-is-an-interface-be-able-to-extend-more-than-one-interface-but-a-class-can-t-extend-more-than-one-class  
category: "technology"  
tags: ["java programming"]  
reading_time: 1 minute  

---

# Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class?

Why is an [Interface](https://www.mindstick.com/articles/23301/interface-in-oops) be able to [extend](https://www.mindstick.com/forum/2353/how-to-implements-of-inheritance-in-java) more than one Interface but a [Class](https://www.mindstick.com/articles/12089/arrays-in-java-determining-class-of-an-array-part-8) can't extend more than one Class?

## Answers

### Answer by Hemant Patel

The **interface** is a pure abstraction model and does not have ***inheritance hierarchy like classes*** that's why interface be able to extend more than one interface but a class can't extend more than one class because Java doesn't allow multiple **inheritance**, so the class is restricted to extend only one class. One of the significant difference between interface and classes *is that interfaces having no fields but classes can have.*The class can be instantiated which made objects but you can't do with interfaces. One of the reasons that's why the Java programming language doesn't allow you to extend more than one class is to avoid the issues of multiple inheritances of state. Multiple inheritance having ability to inherit fields from multiple classes.\
***I hope it's informative for you...***


---

Original Source: https://answers.mindstick.com/qa/31899/why-is-an-interface-be-able-to-extend-more-than-one-interface-but-a-class-can-t-extend-more-than-one-class

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
