//source code how to declare abstract class
using System;
namespace OOPSProj
{
abstract class AbstactParent
{
public void Add1(int x, int y)
{
Console.WriteLine(x + y);
}
public void Sub1(int x, int y)
{
Console.WriteLine(x - y);
}
public abstract void Mul1(int x, int y);
public abstract void Div1(int x, int y);
}
}
No comments:
Post a Comment