Skip to content

Instantly share code, notes, and snippets.

@MericBERBER
Created June 16, 2017 09:50
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 MericBERBER/1dca8a50fdf758caa0be73c2ec82163d to your computer and use it in GitHub Desktop.
Save MericBERBER/1dca8a50fdf758caa0be73c2ec82163d to your computer and use it in GitHub Desktop.
class Base {
private void fun() {
System.out.println("Base fun");
}
}
class Derived extends Base {
private void fun() {
//Mümkün değil.
System.out.println("Derived fun");
}
public static void main(String[] args) {
Base obj = new Derived();
obj.fun();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment