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)
Document information
- Study
- Unknown
- Uploaded on
- December 8, 2024
- Number of pages
- 42
- Written in
- 2024/2025
- Type
- Exam (elaborations)
- Contains
- Questions & answers