Nathan Doromal
Nathan Doromal

Reputation: 3547

How can the C++ data-oriented design achieve polymorphism without using virtual functions?

I have found that data-oriented programming is a good way to bridge the gap between object-oriented programming and functional programming.

Data-oriented design uses data instead of objects: https://blog.klipse.tech/dop/2022/06/22/principles-of-dop.html

However, extensibility and reuse can be a challenge. Polymorphism is the characteristic we are looking for to achieve the aforementioned.

But what does this look like in a data-oriented design world?

Upvotes: 1

Views: 257

Answers (0)

Related Questions