Redefine the Task Bag interface from Exercise 8.1 in IDL so that it makes use of a struct to represent a Pair, which consists of a Key and a Value. Note that there is no need to use a typedef to define a struct.

What will be an ideal response?

```
typedef string Key;
typedef sequence Value;
struct Pair { Key key; Value value;
};
interface TaskBag {
readonly attribute int numberOfTasks;
exception TaskBagException { int no; string reason; };
void pairOut (in Pair) raises (TaskBagException);
// pairIn and readPair might use the pair, or could be left unchanged
};
```

Computer Science & Information Technology

You might also like to view...

________ is the study of the relationship between workers and their workspaces

A) Genomics B) Ergonomics C) Workplace safety D) Biometrics

Computer Science & Information Technology

________ of your files are created by default as a result of the synchronization process

Fill in the blank(s) with correct word

Computer Science & Information Technology