Get class variables from another class

Is this a trick question?

I think in the above code the issue is that you try use a before a‘s constructor is finished

The println line itself is okay

2 Likes