Question: In the Design by Contract approach to software design, a method in a subclass that overrides a superclass method is allowed to ( choose all
In the Design by Contract approach to software design, a method in a subclass that overrides
a superclass method is allowed to choose all that apply
weaken the method's precondition
strengthen the method's precondition
strengthen the method's postcondition
weaken the method's postcondition
None of the other answers are correctthe precondition and postcondition must remain exactly the
same.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
