Skip to content

Instantly share code, notes, and snippets.

@slxny
Created April 6, 2017 03:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slxny/60c0da56a1ff7e63afdfa4d01c8822d3 to your computer and use it in GitHub Desktop.
Save slxny/60c0da56a1ff7e63afdfa4d01c8822d3 to your computer and use it in GitHub Desktop.
this. (this, dot)
public class Motor {
private int rpm;
public Motor(){
this.rpm = 0;
}
/* for all intents and purposes, is this the same as.. */
public Motor(){
Motor.rpm = 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment