Skip to content

Instantly share code, notes, and snippets.

@aniketmlk6
Created June 28, 2021 18:10
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 aniketmlk6/9e4e78012cbc0960e5519d43ca2e82b2 to your computer and use it in GitHub Desktop.
Save aniketmlk6/9e4e78012cbc0960e5519d43ca2e82b2 to your computer and use it in GitHub Desktop.
class A {
protected void simple_Method() {
System.out.println("I am a simple method");
}
}
public class Main extends A{
public static void main(String[] args) {
A a_obj = new A();
a_obj.simple_Method();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment