-
Notifications
You must be signed in to change notification settings - Fork 0
inheritance
Keyhan Hadjari edited this page Sep 21, 2016
·
1 revision
A general rule of implementing and extending is you can make your new class or interface "less restrictive" but not "more restrictive". If you think of the requirement to handle an exception as a restriction, an implementation that doesn't declare the exception is less restrictive. Anybody who codes to the interface will not have trouble with your class.