C++ programming question will upvote
Given the declaration class MyClass f private int x void setX(int y) { x- y public void printo t System.out printixx) MyClass myObject Which following statement is legal? o myObjectx 10, o myObject.setx(10) o myObject.print0, o myObject.y 15; Show transcribed image text Given the declaration class MyClass f private int x void setX(int y) { x- y public void printo t System.out printixx) MyClass myObject Which following statement is legal? o
OR
OR