Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Learning Programming

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.

Name: Anonymous 2013-03-06 12:39

java
lel
GC is shit.

Name: Anonymous 2013-03-06 12:40

I am aware, but I have to know it anyway.

Name: Anonymous 2013-03-06 12:55

Read SICP.

Name: Anonymous 2013-03-06 13:02

I'll have to buy it.

Anyway, how do I create a method shared by all objects created from one class?

i.e. Service has 100 instances of TireService, and I want them all to use the same static method for counting the number of TireServices when I call that function.

Name: Anonymous 2013-03-06 13:46

man, those prices are high..

Name: Anonymous 2013-03-06 15:28


defun lelclass {
    farts fart fatttt;
    booleena sharedMethodlellllll(penis nigger) {
    }
}

Name: Anonymous 2013-03-06 15:46

>>6
What? SICP is free online, and there's a well-known PDF version, should you wish to print some chapters yourself.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List