Introduction to OOP | Chapter 5: Messages Instances and Initialization: | next | previous | audio | real | text |
class PlayingCard { ... public void flip () { setFaceUp( ! faceUp ); } ... }Is assumed to be equivalent to:
class PlayingCard { ... public void flip () { this.setFaceUp( ! this.faceUp); } ... }