Rocket interview question

What are abstract classes and polymorphism?

Interview Answer

Anonymous

Oct 8, 2019

Abstract class: Cannot have instaces, but can have one or more methods. They require subclasses for implementation. Polymorphism: Polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.