How does polymorphism relate to superclasses and subclasses?

  • It allows different subclasses to have different implementations of the same method
  • It enables a superclass to inherit properties from its subclasses
  • It ensures that each subclass has the same set of attributes
  • It restricts the use of subclasses in a polymorphic relationship
Polymorphism, in the context of superclasses and subclasses, allows different subclasses to have different implementations of the same method. This flexibility in behavior enhances the adaptability of the database model.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *