Question OOP-CLS-0052
MediumWhat is wrong with this Java constructor: Point(int x, int y) { x = x; y = y; }?
- A.
Nothing is wrong
- B.
It assigns the parameters to themselves; it should use this.x = x and this.y = y
- C.
Sign up free to see the answer and a step-by-step explanation.