Abstract | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuesta
+ 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