Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how do i overload methods and constructors,can someone write a simple code to explain please!
Posted
Updated 17-Jan-21 18:27pm
Comments
Toli Cuturicu 20-Aug-10 6:53am    
Reason for my vote of 1
I can't read documentation, poor me!

Perhaps use google first, lots of information available on this subject

http://csharp.net-tutorials.com/classes/method-overloading/[^]

http://www.vijaymukhi.com/documents/books/csbasics/chap7.htm[^]

Quick example

public Test()
{
}

public Test(int someParam) : this()
{
}

public Test(int someParam, string anotherParam) : this(someParam)
{
}
 
Share this answer
 
v2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900