I have a constructor tree (int a, int b, int c) and a second constructor tree (int a, int b, int c, String s). How to load the second constructor the first time to save a record of all the logics? I was thinking about something like this, but it gives me an "null" object.
public Tree(int a, int b, int c){ Tree t1 = new Tree(a, b, c, "randomString"); }
source share