Yongtao You

Greenhorn
+ Follow
since Oct 18, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yongtao You

(#56) Can a method with no access modifier be overriden by a method marked protected?

Answer: Yes
Overriden methods are allowed to have LESS restriction, and since protected is less restricted than default (package), this is allowed.

--------

This is an error, right? Here is another one:

--------

(#141) an overriding method can change the access modifier from default to protected.

Answer: true

---------

Error?
[ October 18, 2004: Message edited by: Yongtao You ]
19 years ago