Skip to main content
Correction
Source Link
Evan Shaw
  • 24.7k
  • 8
  • 72
  • 62

NoAssuming that Test is a class with a defined constructor, there's no difference. The latter form makes it a little clearer that Test's constructor is running, but that's about it.

No, there's no difference. The latter form makes it a little clearer that Test's constructor is running, but that's about it.

Assuming that Test is a class with a defined constructor, there's no difference. The latter form makes it a little clearer that Test's constructor is running, but that's about it.

Source Link
Evan Shaw
  • 24.7k
  • 8
  • 72
  • 62

No, there's no difference. The latter form makes it a little clearer that Test's constructor is running, but that's about it.