Runtime Polymorphism
One of the frequently seen situations from a technical standpoint in a large scale of Business Layer objects is, invoking methods from different objects when they contain same method name. Today, am going to make it simple to give an example for Runtime Polymorphism. Leave your comments if am mistaken At this stage, I don’t think to mention about "Polymorphism", as hope that you are aware of how polymorphic behavior can be fused using C#. If you want a start up, in simple words, implementation of one Method with many definitions, as mentioned below. class Employee { /// <summary> /// Invoked for the Regular salaried employes /// </summary> /// <param name="intEmpId"> Employee ID </param> /// <param name="intAbscentDays"> Number of days </param> /// <returns></returns> public long CalculateSal( int intEmpId, int intAbscentDays) { return (GetEmpSal(intEmpId) * (GetWorkingDays( DateTime .Now.Month) ...