Closed chuigda closed 2 months ago
According to Liskov replacement principle, we can make Array classes subclasses of Ptr classes. So for commands/fields that expects a Ptr we can use Array for that. Also this removes the necessity of ofPtr method.
Array
Ptr
ofPtr
Yes.
According to Liskov replacement principle, we can make
Array
classes subclasses ofPtr
classes. So for commands/fields that expects aPtr
we can useArray
for that. Also this removes the necessity ofofPtr
method.