using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MyAplication {
class Demo {
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();
}
class Father {
public void display() {
Console.WriteLine(display);
}
}
class Son : Father {
public void displayOne() {
Console.WriteLine(displayOne);
}
}
}
}