Introduction to OOP: Chapter 11: Replacement and Refinement
[next]
[previous]
[audio]
[real]
[text]
Replacement in Java
-
Similar to replacement in C++, but no virtual keyword.
-
Can even replace data fields, although these are static and not dynamic
-
Keyword final can be used to prohibit replacement of methods, or
prohibit subclassing altogether.
Intro OOP, Chapter 11, Slide 10