424,279 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,279 IT Pros & Developers. It's quick & easy.

Using multiple design patterns in a program

P: 1
I am taking my second class in Java and this is based on patterns. I need to create a project for the class and I am a little stuck. I need to use 4 patterns in the project and I am not sure which ones I should focus on as I am just now learning about them. The project I want to create is a simple inventory system, more specifically an asset management system that could track IT hardware types (laptop, workstation, monitor, etc) and then assign values to it.

I think a decorator pattern would be an obvious one to use. That way I could create an object (laptop for example) and decorate it with brand, OS, RAM, HD size, etc. I could maybe use a factory pattern so that each specific object is encapsulated so that if I am creating (adding) a monitor, I am not requiring the user to add the OS/RAM/HD size etc.

What else is out there that you think I could use for this? Any help or suggestions you could offer would be great.
Sep 10 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.