I read everywhere that :
Constructors do not inherit from base class to derived class
If this is true then
How can a base class default constructor call when we create object of derived class?
For example :
public class A
{
public void AA()
{
//anything
}
}
public class B : A
{
public void BB()
{
//anything
}
}
class Program
{
static void Main(string[] args)
{
B Bobject = new B(); // Why it will call class A's default constructor if constructors not inherit from base to derived class
}
}