using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication10
{
public abstract class abc
{
int i;
public abc(int y)
{
i = y;
display(i);
}
public abstract void display(int x);
}
class Program:abc
{
public Program():base(1000)
{
}
static void Main(string[] args)
{ Program ab= new Program();
Console.ReadKey();
}
public override void display(int x)
{
Console.WriteLine("hello we are in Caller Clss"+ x);
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication10
{
public abstract class abc
{
int i;
public abc(int y)
{
i = y;
display(i);
}
public abstract void display(int x);
}
class Program:abc
{
public Program():base(1000)
{
}
static void Main(string[] args)
{ Program ab= new Program();
Console.ReadKey();
}
public override void display(int x)
{
Console.WriteLine("hello we are in Caller Clss"+ x);
}
}
}
Comments