In the first case you are instantiating the class passing those parameters as arguments.
In the 2nd case you are instantiating the class, calling the instance with two inputs and assigning output to b and a.
Does the 1st case even run?