Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #5608
| Date | 2011-06-24 00:39 +0200 |
|---|---|
| From | Aéris <aeris@imirhil.fr> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Needs help in editing |
| References | <1021f122-3898-4fc9-93ed-ac1aa9403b82@q15g2000yqk.googlegroups.com> <4e03bfb7$0$23665$426a34cc@news.free.fr> |
| Message-ID | <4e03c0a3$0$23665$426a34cc@news.free.fr> (permalink) |
| Organization | Guest of ProXad - France |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le 24/06/2011 00:35, Aéris a écrit :
>> 3) Input from the user for the 5 specific employees and then comment
>> > out the hardcoding for the 4 employees in the original code
> public enum EmployeeType {
> SALARIED, HOURLY, COMMISSION, SALARY_BASED_COMMISSION
> }
I forgot to say you must use an EmployeeFactory to create employee from
user input (with reflection for example) to avoid harcoded craps switch
case.
- --
Aeris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJOA8CjAAoJEK8zQvxDY4P9MDkH/2PXWKeE8JJ9kPLlNZoS6pl+
c2352NA4XpWskE8iOFpT3KBmyQqfv8uclXU7ersbke6vVbmPH7izNWlxgasBJ8eX
CeNkknTzdR9m/SdapOpDbGKQgPsoUM6bbZcaU1qJRmMmsEMV6gRDxN6lf0lzoJjU
xSXyJLxMQoQ6UFH8STNEQ5yUh6euQAxnAZtKVlzh31Txhvp3hkyzQpS3rLselGjO
D4x1SfJUAetmE4zqOY8BAKdjy+SBd2vyPCqA96aTndicVfn73jADKeKaBS+pbf7g
tRdBFID+BszOFu5AEIRYfF0v6YYSALAyAfm7aGbPSW2Ef/E1ireQckoH8NZp3vs=
=ZctI
-----END PGP SIGNATURE-----
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Needs help in editing Eric <ehtisham@gmail.com> - 2011-06-23 11:25 -0700
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:35 +0200
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:39 +0200
Re: Needs help in editing lewbloch <lewbloch@gmail.com> - 2011-06-24 08:42 -0700
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 21:28 +0200
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:30 -0400
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-26 21:49 +0200
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:32 -0400
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:35 -0400
Re: Needs help in editing rossum <rossum48@coldmail.com> - 2011-06-23 23:42 +0100
Re: Needs help in editing William Colls <william.colls@rogers.com> - 2011-06-23 22:40 -0400
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:40 -0400
Re: Needs help in editing Roedy Green <see_website@mindprod.com.invalid> - 2011-06-27 20:05 -0700
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-28 00:09 -0400
csiph-web