What is a protected method?

Q

What is a protected method?

✍: Guest

A

A protected method is a method that can be accessed by any method in its package and inherited by any subclass of its class.

2012-07-11, 2245👍, 0💬