Search:

Type: Posts; User: Junky

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    1,166

    Re: Call without being static? [Question]

    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...
  2. Replies
    4
    Views
    1,166

    Re: Call without being static? [Question]

    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...
Results 1 to 2 of 2