Total members 10261 | Gratitudes |It is currently Tue May 22, 2012 5:34 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 1 post ] 
Author Question
 Question subject: abstract factory implementation .please help me?
PostPosted: Fri Oct 15, 2010 2:34 pm 
Offline
Newbie
User avatar

Joined: Mon Dec 29, 2008 5:04 am
Posts: 4
Has thanked: 0 time
Have thanks: 0 time

i want to make java application using abstract factory,
Suppose you are asked to program adventure games. Characters contained in the game are Army and Civilian. The character the player has the ability to shoot (shoot). Each character is equipped with 100 units of ammunition. For Army character, each time firing the ammunition will decrease 2 units. While Civilian character, each time firing ammunition will be reduced as much as 3 units. If ammunition is not sufficient for the next shot, then show the text "RELOAD" for the Army and the words "HIDE" to Civilian.
Create a program in accordance with the description above by applying the Factory Pattern.

anybody can help me?


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 1 post ] 
Quick reply


  

 Similar topics
 Implementation of association rules
 wiener filter implementation
 Associate Analyst- Implementation
 Implementation of the DES & Triple DES in C++ or Java
 java abstract class,concrete class and interface
 What is an Abstract Class? !!!
 Implementation of FCFS, SJFS, Round Robin and priority algo
 Abstract Classes in jsp
 The difference between an Interface and an Abstract class
 What is an abstract method

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 3 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team