Question: what is the difference between inheritance and interface?
Answer: Inheritance and interfaces are related to OOP. The key difference between inheritance and interface is that inheritance is to derive new classes from existing classes and an interface is to implement abstract classes and multiple inheritance.