What is the output from the following code
using System; class MyClass { public MyClass() { Console.WriteLine("A Constructor with no argument"); } public void MyClass() { Console.WriteLine("a method"); } }
Java allows this but the C# compiler will raise an error.
You cannot specify the return type for constructor.