-5

Is it possible to assign to two variables in one statement?

E.g.

this.edge = this.side = null;
Ole V.V.
  • 81,772
  • 15
  • 137
  • 161
Andreu Alcon
  • 217
  • 3
  • 13

1 Answers1

0

Adding one line will not cost you much, just use:

this.edge = null;
this.side = null;
Jesse
  • 3,522
  • 6
  • 25
  • 40