MCR-Digital / apprentice-boot-camp-fundamentals-1

Slides and exercises for Fundamentals 1
https://mcr-digital.github.io/apprentice-boot-camp-fundamentals-1/
Creative Commons Attribution Share Alike 4.0 International
2 stars 71 forks source link

Group may jump to use inheritance in encapsulation exercise #103

Closed mrmanc closed 1 year ago

mrmanc commented 2 years ago

Might be good to highlight the violations of encapsulation that we need to address before asking them to think about which classes should be introduced to improve encapsulation.

mrmanc commented 2 years ago

Interesting quote:

Inheritance breaks encapsulation

https://wiki.c2.com/?InheritanceBreaksEncapsulation