Abstract base class should have or not have data members when using decorator pattern C++
问题 Some posts have previously asked/discussed whether to include private data members in abstract base classes. I want to explore this here on a concrete example in combination with the decorator pattern. I came across this issue when I was implementing a Monte Carlo library to price financial derivatives. A random normal number generator is an essential part of a Monte Carlo pricing library. You have some options on how to define you normal variables starting from a random uniform number