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
Escuela, estudio y materia
- Institución
- CSE 2221
- Grado
- CSE 2221
Información del documento
- Subido en
- 28 de mayo de 2024
- Número de páginas
- 12
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas
Temas
Documento también disponible en un lote