aspose file tools*
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: 69
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: 2885
    
  13

1). Yes

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

Joined: Aug 21, 2008
Posts: 69
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: will method overloading apply in this example?
 
Similar Threads
Wats the Output...
Overriding
overriding + overloading
compile time errors in the program
Output