C++ Programming Assignment: Inheritance and Design Philosophies
VerifiedAdded on 2022/10/10
|6
|1020
|171
Homework Assignment
AI Summary
This C++ programming assignment explores fundamental concepts such as protected access, inheritance, and polymorphism. It delves into the usage and implications of the protected keyword in C++, including who can access protected members and the impact of inheritance on access levels. The assignment contrasts "Is a" and "Has a" relationships, explaining their differences in the context of C++ programming. Furthermore, it examines polymorphism in C++ and compares its implementation with C#. The assignment also explores the goals of C++ designers, how C++ handles exceptions using try, catch, and throw keywords, and compares the design philosophies of Smalltalk, C++, and C#. Two types of inheritance, multilevel and hybrid, are defined. Finally, it compares the OO 'purity' of Smalltalk and Eiffel, and it also addresses a programming principle that Eiffel does not support.
1 out of 6