Types and Polymorphism: CS 305 & 503 Lecture notes

Data Structures & Algorithms Lecture Notes

10 September 2009 • Types and Polymorphism


There’s no problem if use() only treats parameter o as an Object instance; that is, if use() calls only methods from the Object protocol. There’s also no problem if use() doesn’t call any methods at all through o, in which case null may also be an acceptable stack-element value.


This page last modified on 24 January 2006.