C#
Example
abstract class Shape
{
public abstract string GetName();
}
class Rectangle : Shape
{
public override string GetName() { return "Rectangle"; }
}
class Program
{
static void Main(string[] args)
{
Shape shape = new Rectangle();
Console.WriteLine(shape.GetName());
// on the screen we will see
// Rectangle
}
}