Skip to content

Instantly share code, notes, and snippets.

@TheShubhamVsnv
Last active January 17, 2024 15:01
Show Gist options
  • Save TheShubhamVsnv/84928fe6f26a8f3645f2d1b631f15d61 to your computer and use it in GitHub Desktop.
Save TheShubhamVsnv/84928fe6f26a8f3645f2d1b631f15d61 to your computer and use it in GitHub Desktop.
/*
Override is used to indicate that a method in a subclass is intended to override a method with the
same signature in its superclass. This annotation helps catch errors at compile time if the method
is not actually an override.
*/
public class MyChildClass extends MyBaseClass {
public override void myVirtualMethod() {
// My own version of the virtual adventure!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment