Early and late binding in C#
When an object is assigned to an object variable of the specific type, then the C# compiler performs the binding with the help of .NET Framework . C# performs two different types of bindings which are: Early Binding It recognizes and checks the methods , or properties during compile time. In this binding, the compiler already knows about what kind of object it is and what are the methods or properties it holds, here the objects are static objects. The performance of early binding is fast and it is easy to code. It decreases the number of run-time errors. Example: // C# program to illustrate the // concept of early binding using System; class Geeks { // data members public string name; public string subject; // public method public void details(string name, string subject) { this.name = name; this.subject = subject; Console.WriteLine("Myself: " + name); Console.WriteLine("My Favorite Subject is: " + subject); } } // Driver cl...