COMP 249 Object-Oriented Programming II full summery java programming FINAL EXAM PREP FALL DECEMBER 2024 Concordia University
COMP 249 Object-Oriented Programming II full summery java programming FINAL EXAM PREP FALL DECEMBER 2024 Concordia University COMP249 Final Exam INHERITANCE: General Information: - DerivedClass inherits all public/private instance variables, all public methods, and all public/private static variables of BaseClass. Overriding Methods: - A derived class can change an inherited method by overriding it - Method keeps the same signature, but changes the definition. - Changing the return type of overridden methods: - Normally cannot be changed - If it is a class type, it can be changed to any descendent class (Covariant Return Type)
Información del documento
- Estudio
- Desconocido
- Subido en
- 8 de diciembre de 2024
- Número de páginas
- 42
- Escrito en
- 2024/2025
- Tipo
- Examen
- Contiene
- Preguntas y respuestas