Eden Landau wrote:Hope it's clearer now.
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.
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.
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.
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?
Amateurs built google. Professionals built the titanic. We can't find the guy that built this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton