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

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

    • 1
  • Mukesh Kumar
    Aug, 2017 29

    by the use of new keyword in method hiding

    • 0
  • 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.

    • 0
  • 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.

    • 0
  • 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.

    • 0
  • Prakash Tripathi
    Apr, 2016 10

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

    • 0
  • ahmed ghanii
    Nov, 2015 17

    through inheritance

    • 0
  • Pankaj  Kumar Choudhary
    Mar, 2015 30

    You can also achieve polymorphism using templates , generic

    • 0
  • Durga Velusamy
    Mar, 2015 7

    by inheritance

    • 0
  • Durga Velusamy
    Mar, 2015 7

    by inheritance

    • 0
  • Shilpa Kuber
    Nov, 2013 18

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Dharmendra Singh
    Oct, 2013 14

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

    • 0
  • Miroslav Bucko
    Oct, 2013 10

    Polymorphism applies to overriding not overloading

    • 0