Definition : " Poly " stands for " many " and " morph " stands for " forms ". Generally, polymorphism means one name different uses . Technically, it means being able to send the same message to different objects and get different result. Polymorphism through Inheritance We can achieve polymorphism through inheritance . For example class GenericParser def parse raise NotImplementedError , 'You must implement the parse method' end end class JsonParser < GenericParser def parse puts 'An instance of the JsonParser class received the parse message' end end class XmlParser < GenericParser def parse puts 'An instance of the XmlParser class received the parse message' end end Here the GenericParser is the base class. Class JsonParser and XmlParser are inherited from the GenericParser. Now suppose we run the below code. puts 'Using the XmlParser' parser...