Landing : Athabascau University

Unit 4: Revision

Last updated May 15, 2022 - 11:02am by William Henman

I started reading the fourth Unit. Firstly, I finally understood the main() method, with the argument String[] args which is an array of Strings named args. It made more sense looking at it that way since I could not understand why they used that initially. Since I learned a bit about subroutines on my own by doing a bit of research, I already understood the general syntax of a method. Although, I found it useful to know that a Public subroutine could be used only in its package, while a Private subroutine could be used only in a class. I also learned a bit more about how to use variables, and how to use them as local variables inside parameters or using them to place inside the subroutine as a parameter. I had a little trouble with that before reading this unit, which helped me work back on the assignment. I ended up turning the input value into a global variable! Feels good to keep learning and it is starting to feel like coding will be a long-time passion of mine. I had no particular reason to change the code other than to apply what I had learned to my assignment. Return is interesting but with Python, I already worked with this. This course is a lot more object-oriented and class-oriented as I can see and I see the effect of this through the global variables and working with classes, which I didn't get the chance to do with python with my course (only outside and had knowledge from the internet and my own testing). 

 

History