As per my previous knowledge, I always come to know that multiple inheritance is not possible in .NET. But if it is true, then I am confused when I have following code segment..
Suppose I have a class named Employee
class Employee{}
Then I am inheriting Employee
class in another class named Manager
class Manager : Employee
{
}
Our every class, either defined in .NET class library or user-defined are always have System.Object
as its base class. If it is true, then it means Manager
class have two base classes, one is System.Object and another is Employee
, where System.Object
is being inherited implicitly and Employee class is being inherited explicitly, and Manager
class has two base classes which forms Multiple Inheritance in place, which is actually impossible in .NET.
So, we can say that somewhere/somehow, multiple inheritance is possible, and if it is possible then why there is compile-time error when developers write code for it.