CSE 2221 PASSED Exam Questions and CORRECT Answers
Implements - -Holds between an interface and a class -Class has the method bodies for contracts in an interface Extends - -Holds between two classes or two interfaces -Start out with all the contracts or bodies from the previous class/interface -Purpose: Add method bodies, override methods, overload methods -If B extends A, B inherits all of the method bodies in A Precondition - -Client is responsible for meeting requirements -Implementer can assume that it is being met -"Requires clause" ***IF THE PRECONDITION IS FALSE, THE FUNCTION CAN LITERALLY DO ANYTHING INCLUDING NOT TERMINATE
Written for
- Institution
- CSE 2221
- Course
- CSE 2221
Document information
- Uploaded on
- May 28, 2024
- Number of pages
- 12
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
Also available in package deal