2012-12-24から1日間の記事一覧

JavaのClassを継承してもprotectedメソッドにアクセス出来ない。

こういう場合。 public class HasProtectedMethod { protected void protectedMethod() { System.out.println("Should allow access from child."); } } class Child(HasProtectedMethod): def call_protected_method(self): HasProtectedMethod.protectedMe…