PreviousNext

Passing a String Where It Isn’t Expected

by bill-s, 2017-10-14T11:28:17.000Z

Since the goal is to construct instances of the main class by passing a string, it seems the way to implement this request is to give the main class a constructor that accepts a string as its argument. Surprisingly, adding a constructor isn’t the only way to achieve the desired effect!

Read More