Interviews - C# Corner

Dharmendra Singh
How can achieve polymorphism without using overloading and overriding?
By Dharmendra Singh in OOP/OOD onOct 09 2013
  • Jaiprakash Barnwal
    Sep, 2015 10

    We can implement polymorphism using generic types and params keyword in method signature.

    • 2
  • Mukesh Kumar
    Aug, 2017 29

    by the use of new keyword in method hiding

    • 1
  • Prakash Tripathi
    Apr, 2016 10

    @Durga Velusamy. You stated "by inheritance". If we go by inheritance then it is precisely the overriding (virtual/override). Here question is can we achieve the same without using overloading and overriding.

    • 1
  • Prakash Tripathi
    Apr, 2016 10

    @Shilpa Kuber. You rightly stated that "You can achieve polymorphism by creating an interface and implementing that interface in two classes with different implementation." but that is precisely the overloading. Here question is can we achieve the same without using overloading and overriding.

    • 1
  • Prakash Tripathi
    Apr, 2016 10

    @Miroslav Bucko, Polymorphism applies to overriding and overloading both. overriding is called as run time polymorphism whereas overloading is called as compile time polymorphism.

    • 1
  • ahmed ghanii
    Nov, 2015 17

    through inheritance

    • 1
  • Pankaj  Kumar Choudhary
    Mar, 2015 30

    You can also achieve polymorphism using templates , generic

    • 1
  • Durga Velusamy
    Mar, 2015 7

    by inheritance

    • 1
  • Durga Velusamy
    Mar, 2015 7

    by inheritance

    • 1
  • Shilpa Kuber
    Nov, 2013 18

    You can achieve polymorphism by creating an interface and implementing that interface in two classes with different implementation.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Dharmendra Singh
    Oct, 2013 14

    Polymorphism means 'one thing many form'. Yes we can achieve polymorphism without overloading and overriding.

    • 1
  • Miroslav Bucko
    Oct, 2013 10

    Polymorphism applies to overriding not overloading

    • 1
  • Prakash Tripathi
    Apr, 2016 10

    @Durga Velusamy, @Dharmendra Singh. Whats the purpose of posting duplicate statements?

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS