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."

This thread has been viewed 1057 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 23, 2018 08:59:02.