Introduction to OOP Chapter 5: Messages Instances and Initialization: next previous audio real text

Implicit Use of This

Within a method a message expression or a data access with no explicit receiver is implicitly assumed to refer to this:

class PlayingCard {
	...
	public void flip () { setFaceUp( ! faceUp ); }
	...
}

Is assumed to be equivalent to:

class PlayingCard {
	...
	public void flip () { this.setFaceUp( ! this.faceUp); }
	...
}

Intro OOP, Chapter 5, Slide 06