Eden Landau wrote:Hope it's clearer now.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
You try to get the code you posted to compile, then.Eden Landau wrote:Campbell, small stuff, don't matter one bit, and 'cause it's my point.
![]()
. . .
Eden Landau wrote:I'm not seeing a difference.
If I create instances of class, the class I created them in would "have" the instances of the classes, no?
And I'm not seeing how this answers the question at hand.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Eden Landau wrote:Dammit. You asked for it, internet!
Here's my code:
...
Now I feel all stupid for reverting to actually have to post my 350 lines of code.
What I need is for Console.processDev() to call Methods.setChange(), in a way that will affect DiceRoll if statements (when calling methods.setSideNum() and methods.setDiceNum()), assumably through DiceRoll's instance of Methods.
There!
Edit: Class Console extends class Methods as an experiment to try and do that thing I've been trying to do. I really can't explain any of this any better.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Eden Landau wrote:It's not a game, actually, but a dice rolling utility, though I see your point.
Any more specific structure tips? How should I split the methods, if at all?
To be more specific, what other way is of programming? I know it sounds silly, and I know there ARE other ways, but what are they?
And also, just so that I'd know, how do I do what I wanted to do?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
The first person to drink cow's milk. That started off as a dare from this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|