R4R
Right Place For Right Person TM
 

R4R C# C# Examples MultiLevel Inheritance in C#

C# Examples             

Index 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

Multilevel Inheritance Example C#

 

 

 

 

         



//Multilevel Inheritance Example C#
class a
{
	public void display()
	{
		System.Console.WriteLine("hahahaha");
	}
}
class b : a //b is child of a
{
	public void display1()
	{
		System.Console.WriteLine("hihihih");
	}
}
class d : b //d is child of b
{
	public void display2()
	{
		System.Console.WriteLine("hohohohoh");
	}
}

class c 
{
	public static void Main()
	{
		d x=new d();//Normally object of child
		x.display();
		x.display1(); 
		x.display2(); 
	}
}

 Download Source Code

Index 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


Tolal:0 Click:
Show All Comments

Post Your Comments

Your Name:

Your Email ID :
Comments :
URL
  =* Enter SUM

Tutorials,Examples,Questions and Answer

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R