Thursday, October 4, 2018

Published 5:25 AM by with 0 comment

Polymorphism In C#

Polymorphism:

An object contains many forms/types.

Compile time Polymorphism(its also Early binding, overloading, static polymorphism)
Compile time Polymorphism is also known as method overloading. Method overloading means having two or more methods with the same name but with different signatures.
Run time Polymorphism(its also Late binding, overriding, dynamic polymorphism)
Run time Polymorphism is also known as method overriding. Method overriding means having two or more methods with the same name and same signature, but with a different implementation.

Overloading: Two or more method have same name but different signatures(parameters)
Overriding: Two or more method have same name and signatures(parameters) but implimentations is different.
      edit

0 comments:

Post a Comment