using System;
using System.Collections.Generic;
using System.linq;
using System.Text;
namespaceMyAplication {
classDemo {
static voID Main(string[] args) {
// Father class
Father f = new Father();
f.display();
// Son class
Son s = new Son();
s.display();
s.displayOne();
Console.ReadKey();
}
classFather {
public voID display() {
Console.Writeline("display");
}
}
classSon : Father {
public voID displayOne() {
Console.Writeline("displayOne");
}
}
}
}