|
how do i call a method that is in a different class from within another class? for example...
i am in Class first but there is a method called general(); in Class second. if i am in 'first', how do i called 'general();' if it is in 'second'?
|
|
|
if general is a static method you can call it with the following:
second.general();
if general is an instance then you'll have to instantiate the class first
second s = new second();
s.general();
semper fi..
|
|
|
|
|
|
|
// |