static void Main(string[] args) { Employee E = new Employee(); E.getDetails(); Manger M = new Manger(); M.getDetails(); E.DisplayDetails(); M.DisplayDetails(); }