Skip to content

Instantly share code, notes, and snippets.

@TheShubhamVsnv
Last active January 17, 2024 14:59
Show Gist options
  • Save TheShubhamVsnv/18d3896f43c77f4079a2e4c7aee702f5 to your computer and use it in GitHub Desktop.
Save TheShubhamVsnv/18d3896f43c77f4079a2e4c7aee702f5 to your computer and use it in GitHub Desktop.
/*
Interface is used to define a contract for classes that implement it.
All methods declared in an interface must be implemented by any class that implements the interface.
*/
public interface MyInterface {
void myInterfaceMethod();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment