java tutorial, Uncategorized

What is polymorphism in Java? Method overloading or overriding?

Polymorphism in java is an Oops concept which advice use of common interface instead of concrete implementation while writing code. When we program for interface our code is capable of handling any new requirement or enhancement arise in near future due to new implementation of our common interface. If we don’t use common interface and rely on concrete implementation, we always need to change and duplicate most of our code to support new implementation. Its not only java but other object oriented language like C also supports polymorphism and it comes as fundamental along with encapsulation , abstraction and inheritance.
http://onlywire.com/r/50694865

Advertisements

One thought on “What is polymorphism in Java? Method overloading or overriding?

  1. Managing code in the reusable format is so important as it saves labor and time in developing a code. Polymorphism is one such feature that enables the developer to save time and tedious process while generating a code.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s