(13/20) 13. Override! (...but not call?)


#1



https://www.codecademy.com/en/courses/ruby-beginner-en-MFiQ6/2/3?curriculum_id=5059f8619189a5000201fbcb


Shouldn't the directions include instructions for creating an instance of the class and/or calling a method of the class? None of the other Ruby exercises elucidate the subject of polymorphism, e.g.:


onyxia = Dragon.new("Onyxia") #No question about what is created?
onyxia.fight #No question about what results?


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.