This article was featured on the Main Page Image:LinkFA-star.png A method or void is a piece of code which can be called upon to: * Change a variable * Call upon other voids * Write to a file * Create a new file A static void cannot call upon a specific instance inside the class (e.g. cannot use "this." to refer to something). To clear things up, here is an example: public class ExampleClass {public static void StaticExample() { // static method code } public void InstanceExample() { // instance method code here // can use THIS } } objMyExample.InstanceExample();
Entity | Attribute | Value | Rank |
---|