Abstract | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Abstract

How to explain Abstract vs Polymorphism from a code? https://code.sololearn.com/W4I4sH7PA4T2/?ref=app

3rd Apr 2020, 8:04 PM
Ayomi Gunasekara
Ayomi Gunasekara - avatar
1 Réponse
+ 1
Abstraction and polymorphism are not related. Abstraction is hiding implementation details where as polymorphism is representation of one thing in many forms. For eg- a same method can have multiple implementations. Please remove the code that you have attached with your question because that doesn't really help your question.
3rd Apr 2020, 9:17 PM
Avinesh
Avinesh - avatar