-1

;)Suppose a method is called with formal parameters of supertype and (1)the actual parameters of subtype; Now the method declaration is (2)overridden and overloaded in the (3)previous same class as well as in the (4)overriding subclass.
:icon_rolleyes:An object reference is used on which the call is performed; Here the reference is of the previous same overridden superclass but it denoets the object of the overriding subclass. :icon_exclaim:Which method will be called

  • if only (1) is activated?
  • if (1) & (2) are activated?
  • if (1) , (2) & (3) are activated?
  • if (1) , (2) , (3) & (4) all are activated?

:?:

3
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by peter_budo
-1

A small correction that was ommited previously ~

Suppose a method is called with formal parameters of supertype and (1)the actual parameters of subtype; Now the method declaration is (2)overridden and overloaded with formal parameters of that subtype in the (3)previous same class as well as in the (4)overriding subclass.
An object reference is used on which the call is performed; Here the reference is of the previous same overridden superclass but it denoets the object of the overriding subclass. Which method will be called
if only (1) is activated?
if (1) & (2) are activated?
if (1) , (2) & (3) are activated?
if (1) , (2) , (3) & (4) all are activated?

0

After 4 days still no attempt made to show any work in regards of this, therefore thread closed.
We are NOT 24/7 coding service for lazy people.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.