This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes  will  method overloading apply in this example? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark " will  method overloading apply in this example?" Watch " will  method overloading apply in this example?" New topic
Author

will method overloading apply in this example?

Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 74
1)
If I am having two methods as below in a class.Will it apply method overloading here?


2)
Object obj = new A();
What are the object oriented features applying here?
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3112
    
  42

1). Yes

2). Sorry, I couldn't understand what you meant.
Sri Dharan
Ranch Hand

Joined: Aug 21, 2008
Posts: 74
What I mean that , Is there any Inheritance, Polymorphism ..like OOP features applying here?
Christiaan Lombard
Greenhorn

Joined: Nov 22, 2009
Posts: 26
Polymorphism is applying: "A reference variable can refer to any object as the same type as the declared reference, or it can refer to any subtype of the declared type."


SCJP 6
 
GeeCON Prague 2014
 
subject: will method overloading apply in this example?