Sounds simple enough to test. Write some small classes with methods, compile and execute it and see what happens.
Type: Posts; User: Norm
Sounds simple enough to test. Write some small classes with methods, compile and execute it and see what happens.
If a sub class overrides the base class's method, you'll be calling the sub class's method.
If you have a reference to a class and use it to call a method, you will be calling a method in that...
You need to have a reference to an instance of the class with the method you want to call
refToClassWithMethod.theMethodToCall(<ARGS GO HERE>);
System.out.println("Age: " + age);
Here the...
Does the code compile and execute? If you are getting errors, copy the full text and paste it here.
Do you have any specific questions about the problem?