@DaveVoyles A sub-class's constructor will implicitly call the parameterless constructor of its base class if you don't specify otherwise
Why is VS giving me this error? It is pointing towards a class that I'm not using. (but an extending from) http://davidvoyles.files.wordpress.com/2012/07/pongbug.jpg … #XBLIG #XNA
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles So it's as if you have "public StageSelectionScreen(string message, bool includeUsageText) : base()", and base() doesn't exist -
@benkane Ahh ok, let me try this out. Thank you
End of conversation
New conversation -
-
-
@DaveVoyles I'm guessing you've got a bad constructor. If the base class only has constructors that require parameters, you have to call it -
@EdDiGeronimo So call the base class then? - Show replies
New conversation -
-
-
@pabloblamirez let me see if I use :base
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles the parent class has constructors taking parameters, you need to implement at least one of those constructors in the child classThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles StageSelectionScreen is a constructor that is implicitly trying to call the constructor of MenuScreen. Add ":base(parameters)"Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@DaveVoyles you need to call the base class constructor : base("Stage Selection") -
@MachXGames Yup, that's exactly what it was. I didn't realize that I had to call the base constructor too
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.