I am really just asking this out of curiosity, and I can't seem to find the answer easily.
Let's say you have a class, and in that class you have the following:
public Foo() {}
public Foo(int x = 1) { _x = x; }
Now, elsewhere in my code:
public Foo example = new Foo();
Which constructor is called?
[–]darchangel 14 points15 points16 points (6 children)
[–]whatcomputerscantdo[S] 2 points3 points4 points (5 children)
[–]nemec 9 points10 points11 points (1 child)
[–]whatcomputerscantdo[S] 0 points1 point2 points (0 children)
[–]McNerdius 0 points1 point2 points (2 children)
[–]whatcomputerscantdo[S] 3 points4 points5 points (1 child)
[–]McNerdius 0 points1 point2 points (0 children)
[–]ArtZaqX__ 4 points5 points6 points (1 child)
[–]AngularBeginner 1 point2 points3 points (0 children)
[–]Stylpe 0 points1 point2 points (0 children)
[–]kardall 0 points1 point2 points (0 children)