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

FUCK JAVA

Name: CHUMPY CS STUDENT 2010-12-07 20:53

public class Player extends Piece { ... }
/* ... */
public static Piece inputPiece() { ... }
/* ... */

Player playa = inputPiece();

ChumpyProgram.java:43: incompatible types
found   : Piece
required: Player


So what the fuck is the point of inheritance if you can't do that?

Name: IHBTBM 2010-12-07 21:24

>>2
Actually, screw me.  I type too quickly when I'm in a rush.
Why are you doing that? what makes you think that would even work?

That's not how inheritance works and you're just being dumber than the Java compiler out of spite.

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