Name: Anonymous 2013-03-06 12:35
I asked a local professor for his assignments so I had something to use for practice while I learn java and I don't quite understand the instructions. Here is the full text. http://pastebin.com/AbUcxeSr
My problem is that the individual service classes don't do anything. In order to avoid just copy/pasting all of my code into each child class, I put just about everything into my Service class. Here is my pseudo-code:
define array of objects, size 100
in each object, create Sedan and Mechanic, then get the values for these (mechanic name, VIN, miles)
get random number and create a myService for each object, with myService being one of the four services
print out all services with prices etc. and output total profit from those services.
the problem is the only thing in each child class (radiator, brakes, etc.) is a price. They do absolutely nothing, which makes them a complete waste of files.
Does anybody think they know what he's asking for?
Thank you in advance.
My problem is that the individual service classes don't do anything. In order to avoid just copy/pasting all of my code into each child class, I put just about everything into my Service class. Here is my pseudo-code:
define array of objects, size 100
in each object, create Sedan and Mechanic, then get the values for these (mechanic name, VIN, miles)
get random number and create a myService for each object, with myService being one of the four services
print out all services with prices etc. and output total profit from those services.
the problem is the only thing in each child class (radiator, brakes, etc.) is a price. They do absolutely nothing, which makes them a complete waste of files.
Does anybody think they know what he's asking for?
Thank you in advance.