Using the concept of polymorphism, define messages. 

What will be an ideal response?

A message is a command that tells an object to perform a certain method. For example, the message PICK UP TOYS directs the CHILD class to perform all the necessary steps to pick up the toys. The CHILD class understands the message and executes the method. The same message to two different objects can produce different results. The concept that a message gives different meanings to different objects is called polymorphism. For example, the message GOOD NIGHT signals the PARENT object to read a bedtime story, but the same message to the CHILD object signals it to get ready for bed. If the family also had a DOG object, the same message would tell the dog to sleep.

Computer Science & Information Technology

You might also like to view...

Forensics work requires a broad range of capabilities, many of which are typically found in conjunction with each other.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Users are encouraged to click on a link in an email to obtain exclusive access to the newest version of a popular Smartphone. This is an example of.

A. Scarcity B. Familiarity C. Intimidation D. Trust

Computer Science & Information Technology