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...

Tap or click the Priority box arrow to display the priority options, as shown in the accompanying figure.

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

Computer Science & Information Technology

Cognitive surplus means that we now find many people with

a. more money than free time. b. limited access to the Internet. c. excess time and free tools for collaboration. d. mobile devices.

Computer Science & Information Technology

The ____method repeatedly divides the search interval of an array in half to reduce searching time dramatically.

A. HexSearch B. BinarySearch C. DecimalSearch D. UnarySearch

Computer Science & Information Technology

When you select a state in the History panel, the image reverts to how it looked when that change first was applied.

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

Computer Science & Information Technology