Forums Register Login
will method overloading apply in this example?
If I am having two methods as below in a class.Will it apply method overloading here?

Object obj = new A();
What are the object oriented features applying here?
1). Yes

2). Sorry, I couldn't understand what you meant.
What I mean that , Is there any Inheritance, Polymorphism ..like OOP features applying here?
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."
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

All times above are in ranch (not your local) time.
The current ranch time is
Oct 21, 2017 19:10:18.