So i have a class, called "Audi". Now this class inherits from base abstract class called "Car", now "Car" inherits from abstract class "Vechile". But also, I want class "Audi" to inherit from an interface called "IUnlockCar". My question is as the title mentions. And if it can't be mulitlevel and multiple at the same time, then what type could I call this inheritence?
interface IUnlockCar{}
public abstract class Vechile{}
public abstract class Car : Vechile{}
public class Audi : Car, IUnlockCar{}
In C# you can extend only one class and implement multiple interfaces. The purpose of it is to prevent the Diamond problem