-
basic help with a decorator
HI there,
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
Cheers
Quack
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks