Saturday, 10 September 2011

what is polymorphism? java interview questions....

Ans:

  •  ablity to make more then one form for same function.
  • ability to process objects differently depending on their data type or class    
  • the characteristic of being able to assign a different meaning or usage for same function.
  • it's used to code reusability.

There are two types of polymorphism,
  1.  overloading
  2.  overriding

No comments: