|
|
|
|
|
by zwieback
520 days ago
|
|
If I remember correctly, Liskov didn't talk about inheritance but subtyping in a more general way. Java, C++ and other, especially statically typed, compiled languages often use inheritance to model subtyping but Liskov/Wing weren't making any statements about inheritance specifically. |
|
This is correct. I read her paper closely. One example I give is how SICP provides two implementations for complex numbers[1], the rectangular for and polar form.
and then on page 138 provides this interface that both satisfy 1 https://mitp-content-server.mit.edu/books/content/sectbyfn/b...