logoalt Hacker News

zozbot234today at 3:18 AM1 replyview on HN

You just need to define a trait, then you can use dynamic dispatch.


Replies

9rxtoday at 3:21 AM

You can, but then you don't get any of what OOP actually offers. Message passing isn't the same thing as dynamic dispatch. OOP is a very different paradigm.

show 1 reply