Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discuss inheritance earlier in course #59

Open
smasher164 opened this issue May 15, 2018 · 0 comments
Open

Discuss inheritance earlier in course #59

smasher164 opened this issue May 15, 2018 · 0 comments

Comments

@smasher164
Copy link

Presumably, students taking 2150 have had some prior exposure to class-based inheritance. By discussing its usage in C++ at a higher level earlier in the course, they will be free to use it. For example in lab 3, they can inherit from a LinkedList to implement a Stack, or in lab 5 inherit from a BinarySearchTree to implement an AVLTree.

Discussion of virtual method tables can still be deferred to the assembly lab, if we feel that vtables are better understood in the context of compiler internals and code generation. However, features like multiple inheritance and dynamic dispatch can still be discussed at the language level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant