Constructor inside abstract class
using System;
public abstract class clock
{
public abstract void dum();
public clock()
{
Console.WriteLine("Constructor Called");
}
}
public class Ghadi: clock
{
public override void dum()
{
Console.WriteLine("Successful Called");
}
class tej
{
public static void Main()
{
Ghadi g=new Ghadi();
g.dum();
}
}
}
No comments:
Post a Comment