Created
February 5, 2017 00:34
-
-
Save igor-brishkoski/07d7e626d77ec56cba4b843fc34c70ca to your computer and use it in GitHub Desktop.
Override example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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