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

Fucking classes, how do they work?

Name: Anonymous 2011-05-14 16:52

public void addToClassB(ClassB b)
{
  b.add(this);
}

Why won't this work?

Name: Anonymous 2011-05-14 16:58

Why should it work?

Name: Anonymous 2011-05-14 17:02

>>1

You're adding a class to itself?

Name: Anonymous 2011-05-14 17:17

How should it work?

Name: Anonymous 2011-05-14 18:30


public void addtoClassB(varType var)
{
   this.var = var;
}


(this.var refers to a variable "var," which you would have set in the class constructor)

Name: Anonymous 2011-05-14 18:50

>>3?
He's adding the argument to a class.

Name: Anonymous 2011-05-14 18:55

what the fuck are you trying to do

- post your full source
- say what you want it to do
- use code tags, motherfucker

Name: Anonymous 2011-05-14 19:09

What should work?

Name: Anonymous 2011-05-14 19:31

Fucking source codes How do they work?

Name: Anonymous 2011-05-14 21:20

public void derp(herp hurrdurr)
{
  hurrdurr.nerrrr();
}

Name: Anonymous 2011-05-16 15:03

I don't work

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