Overloading Methods and Constructors
When a method is overloaded, a component contains two methods with exactly the same name. Many methods in .NET Framework are overloaded, including
For example, here is a list of the three overloaded versions of the
Returns a random number between 0 and 2,147,483,647.
Returns a number between 0 and the upper bound.
Returns a number between the lower bound and the upper bound.
Because all three methods do the same thing—they all return a random number—it makes sense to overload the
Next() method. The methods differ only in their signatures. A method signature consists of ...