Re: [java ee programming] Regarding polymorphism and Boolean fields

2010-07-16 Thread AlekseyM
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

[java ee programming] Regarding polymorphism and Boolean fields

2010-07-15 Thread muhammad arslan
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