An example to show overloaded constructors. Example:
using System; class MethodOverload { //Observation: constructor has same name as the class MethodOverload(string str) { Console.WriteLine("Display from one parameterized constructor: " , str); } MethodOverload(string str1,string str2) { Console.WriteLine("Display from two parameterized constructor: {0} {1}", str1, str2); } MethodOverload(string str1, string str2,string str3) { Console.WriteLine("Display from three [...]
