-
Notifications
You must be signed in to change notification settings - Fork 59
Lesson 6 (Inheritance)
Courtney Frey edited this page Apr 14, 2022
·
3 revisions
- What inheritance is and how programmers can use it.
- What abstract classes and methods are.
- How to formally diagram classes and the relationships between classes.
- Check with your course manager for any important announcements.
- Welcome to Day 9!
- Lesson 6
- If studio finishes up early, can use the extra time to work on Assignment 2
- More Assignment 2 work days coming up
- Inheritance is a topic that can seem very intuitive to some and very confusing to others. Be mindful of this gap! Encourage discussion in pairs to help students hear other perspectives on why programmers use inheritance.
- The exercises for today and the studio require students to diagram their classes. By now, all of the students should be used to this, but now that they have learned more about the pillars of OOP, they should be following object-oriented principles. This would be a good time to go over a class diagram and talk about why you made the decisions you made.
- This is another studio where the design of the classes can be subjective, but the implementation should match the design. While the design is subjective, encourage students to use OOP and inheritance as much as possible.
- Students should use TDD and the lessons from last week to implement their design this week. Some may be struggling to incorporate unit testing into their coding workflow. That's okay! Share with them ways they can use tests to make their classes work!