Computer Science 225
Advanced Programming
Spring 2022, Siena College
Lecture 6: Inheritance
Date: Monday, February 14, 2022
Agenda
- Announcements
- Lab 3: Introduction to Java Swing (in Canvas and GitHub) wrapping up
- Problem Set 2 due tonight
- participate in Thursday's programming contest!
- your bonus for participating will be a one-time 24-hour
reduction on the late penalty for a problem set
- contact Dr. Lim to sign up
- Planning for Exam 1
- Monday, 2/28
- you may take the exam in any 2-hour block between 6 and 10 PM
- exam details coming soon, for now just confirming scheduling (see email with Google form)
- Setting up Lab 4 groups and documents
- Inheritance
- overriding
- abstract classes
- In-class exercises (we might not get to all today, 10 points
total) - see Canvas for the link to create your repository, commit
and push your final version to earn credit (no need to tag in an
Issue for grading)
- an Iterator that reverses the output order of another Iterator
- an Iterator that sorts the output order of another Iterator based on a Comparator
- an Iterator that returns values produced by another Iterator filtered by a predicate function
Terminology
- subtype polymorphism
- override
- dynamic binding of method calls
Examples