this means: hide the specifity of processing inside of overriden methods of subclasses (instead of explicit conditions check)
In pseudo-language:
Replace code like
if obj.isOfType1 then doSomethForType1(obj)
else if obj.isOfType2 then doSomethForType2(obj)
...
By the ca
Hi,
I am developing one basic application for banking, a company gave me this
task. The requirements is as follows:
There are 3 data holders:
- owners
- accounts
- transactions to process
There are some tasks like finding account owners and others.
The company requires polymorphism instead