using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MyExamples
{
public class Object
{
static void Main(string[] args)
{
}
public void A1()
{
}
}
public class B : Object
{
public void B1()
{
}
}
public class D : B
{
public void D1()
{
D obj = new D();
obj.A1();
}
}
}
//This is something like this if a class extends another class then i am thinking that it will not extend object class anymore
//but the parent class will be implementing object class...and this is equivalent to multilevel inheritance
//like D extends B but B doesnt extend object class anymore
//and B by default extends object class. So if we create an object of D then we can access object class too