Introduction to OOP | Chapter 11: Static and Dynamic Behavior: | next | previous | audio | real | text |
Most statically typed OO languages constrain the dynamic class to be a child class of the static class.
var pet : Mammal; fido : Dog begin pet := fido; // static class is Mammal, dynamic class is Dog end;