overloading

Is overloading applicable only with in the class or also for the different class..
[89 byte] By [tryshana] at [2007-10-3 3:09:57]
# 1
you can overload an inherited method in the subclass
PMJaina at 2007-7-14 21:00:42 > top of Java-index,Java Essentials,New To Java...
# 2

Overloading means providing constructors with differing sets of parameters to enable objects to be consructed in different situations.

To that extent it applies to one class only.

Inheritance allows you to force subclasses to provide particular methods or you can get a class to provide a method which overrides methods in the super classes. That is overriding, not overloading.

but that doesn't (to me) sound like what you wer asking.

You Q is a bit vague

To clear up what seesm to me to be a confusion between overload and override.

Message was edited by:

nerak99

nerak99a at 2007-7-14 21:00:42 > top of Java-index,Java Essentials,New To Java...