11-20-2018, 06:17 AM
(11-20-2018, 05:38 AM)kyonides Wrote: You're passing down all four parameters to Window_Base, it's parent class. Yeah, Ruby let's you be quite lazy and skip the urge to specify what parameters the child class needs to pass down to its parent class. super is a perfect complement for lazy people!
True that. Ruby lets you be lazy. Under other computer languages, you would have to actually specify that X is an Integer, Y is an Integer, and whatnot. Fun Fun fun.... Heck, even Visual Basic required that you tell it what type of variable you were using!
There are other arguments you can put in as parameters. But I'm leaving *args and optionals arguments for later discussion.
In the meantime, study what we said about the super statement, and give a good reply with possibly some examples. It's always good to see how much you're grasping.