answersLogoWhite

0

Yes, you can overload overridden methods.

In the example below, class B overrides all methods of class A and it has an additional overloaded version. While useless, this code will compile.

class A {

void f() {

}

void f(int n) {

}

}

class B extends A {

void f() {

}

void f(int n) {

}

void f(int n, int m) {

}

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you overload static methods in java?

Just create two methods with the same name, but with different types or numbers of parameters.


How do you overload a method?

Just create two or more methods with the same name, but with a different set of parameters.


How can technology companies help to alleviate the problem of technology overload?

I don't think that it is possible


When was Overload - Overload album - created?

Overload - Overload album - was created in 2006.


Is it possible to override overloaded methods why?

Yes. Overloaded methods are also Java methods and all Java methods can be overridden.


Is it possible to become so stressed out that suddenly you stop feeling it?

Yes. It is called 'overload' or 'traumatic stress'.


An instance method or constructor may be overloaded by providing the same name and arrgument list?

You can overload instance methods and constructors (ref. Prog. Logic)


You can overload methods with differences only in their return type?

False. Overloaded methods must have different parameters defined.A different return type alone would not help the compiler determine which method to choose at compile time.


What do scientific methods lead to results and judgments ements called?

possible in scientific methods


Use megalomania in a sentence?

Hitler's megalomania was ultimately his downfall. His desire for world domination overrided any common sense he many have once had.


Will a pattern overload result in development of muscular imbalances connective tissue strain and possible wear of joint surfaces?

yes


Can you overload static methods in Java?

Yes you can overload the static method. But it should be avoided because memory to static methods are allocated at the time of class load.....so memory will be wasted if we don't use that methods. Whereas non-static method memory allocation depends on Object