Skip to content

Instantly share code, notes, and snippets.

@igor-brishkoski
Created February 5, 2017 00:34
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 igor-brishkoski/07d7e626d77ec56cba4b843fc34c70ca to your computer and use it in GitHub Desktop.
Save igor-brishkoski/07d7e626d77ec56cba4b843fc34c70ca to your computer and use it in GitHub Desktop.
Override example
public class MyParentClass {
public void justaMethod() {
System.out.println("Parent class method");
}
}
public class MyChildClass extends MyParentClass {
@Override
public void justaMethod() {
System.out.println("Child class method");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment