Review Of Demonology Beginnings
From Huben's Wiki
Line 25: | Line 25: | ||
# How can you call a method from another class? Two ways. | # How can you call a method from another class? Two ways. | ||
# If I see a statement such as '''q = Math.log(f);''', what class and method can I infer? | # If I see a statement such as '''q = Math.log(f);''', what class and method can I infer? | ||
− | # You should now know enough to write a simple class, with one solitary method that prints "Don't worry, be happy!". Choose the names of your class and method yourself. No arguments, no return value, yet the method should still have a return type: the mystical value '''void'''. Worry not about '''public''' and '''static'': you may omit them for now. | + | # You should now know enough to write a simple class, with one solitary method that prints "Don't worry, be happy!". Choose the names of your class and method yourself. No arguments, no return value, yet the method should still have a return type: the mystical value '''void'''. Worry not about '''public''' and '''static''': you may omit them for now. |
On the test, you will answer questions of these sorts and more! You will have to examine some dread and loathsome code and answer questions about it. Conundrums and riddles of mythic proportions! Gird your mystic loins to do battle with the wits of I, your mentor! | On the test, you will answer questions of these sorts and more! You will have to examine some dread and loathsome code and answer questions about it. Conundrums and riddles of mythic proportions! Gird your mystic loins to do battle with the wits of I, your mentor! |