fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. WebCrawler w1 = new WebCrawler("any string");
  8. WebCrawler w2 = new WebCrawler();
  9. }
  10. }
  11.  
  12. public class WebCrawler
  13. {
  14. public WebCrawler(string s)
  15. {
  16. Console.WriteLine("Parameter Constructor called..");
  17. }
  18.  
  19. public WebCrawler()
  20. {
  21. Console.WriteLine("Parameterless Constructor called..");
  22. }
  23. }
Success #stdin #stdout 0.02s 33824KB
stdin
Standard input is empty
stdout
Parameter Constructor called..
Parameterless Constructor called..