Say you have a class A that extends class B. A and B are in the same package. B has a method with default access foo(). In class A, is this method inherited, and can it be overwritten like a public or protected method? Or are only public and protected methods inherited?