Subtype constraints
In OO languages, we can often express constraints such as “polymorphic over all types that are subtypes of T”
subtypes have all the operations of T (and maybe more)
body can perform all operations listed in T
Previous slide
Next slide
Back to first slide
View graphic version