basic help with a decorator
I know little about java and I hope someone can help me,
My problem is that I must use a decorator pattern and I have a method where I must give a choice in the main method for when a object (in this case an Account) is created it can be of an account object or a TestingAccountable object. The choice must be of the agrument (t) for TestingAccountable.
I suppose and 'if' statement should be used but I am not sure and if so how excatly should I do it.
As you can see I am new at this game!!!!1