namespace ExcelCopy
{
public class Program : Abs
{
static void Main(string[] args)
{
Program p = new Program();
p.NonAbstract();
Abs a = new Program();
a.NonAbstract();
}
public override void GetFullName()
{
throw new NotImplementedException();
}
public override void NonAbstract()
{
Console.WriteLine("I am method five from child class, I have my own implimentation");
}
}
public abstract class Abs
{
public abstract void GetFullName();
public virtual void NonAbstract()
{
Console.WriteLine("Hi i ma non abstract method from abstract class");
}
}
}

Gokhul VarmanPosted Jul 27, 2017, 12:27 PM
Ajeet MalviyaPosted Jul 25, 2017, 8:24 AM
Thank you Anil for your reply.
Anil JhaPosted Jul 25, 2017, 7:26 AM