Skip to content

Instantly share code, notes, and snippets.

View browny's full-sized avatar
👨‍💻

Browny Lin browny

👨‍💻
View GitHub Profile
@browny
browny / gist:1113176
Created July 29, 2011 05:16
[Java] Access modifier of an overriding method
class Base {
private int privMethod() { return 1; }
int packMethod() { return 1; }
protected int protMethod() { return 1; }
public int pubMethod() { return 1; }
}
class Derived extends Base {