4 ms·
It would be an abstract class with an abstract processPayment method. Then two concrete classes that implement it, each with their own implementation of process
by lacampbell 7y ago
It would be an abstract class with an abstract processPayment method. Then two concrete classes that implement it, each with their own implementation of processPayment.
https://en.wikipedia.org/wiki/Expression_problem https://en.wikipedia.org/wiki/Expression_problem