Polymorphism: CS 310 Lecture notes

Object-Oriented Programming with Java Lecture Notes

19 February 2009 • 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.