Basically you need to create an instance of your class so you can call a non-static method.
Foo myFoo = new Foo(); // creates an instance of the Foo class
myFoo.someMethod(); // calls a...
Type: Posts; User: Junky
Basically you need to create an instance of your class so you can call a non-static method.
Foo myFoo = new Foo(); // creates an instance of the Foo class
myFoo.someMethod(); // calls a...
Consider you have a Person class which has a name attribute and a printName method. If that method was static and you called it which name should it print, mine, yours? There arebillions of people on...