If we needed the number of pages, why is this code in Book.cpp wrong?

```
void GetPages() {return num_pages;}
```

A. GetPages() is not passed a variable.
B. The code is okay, the program returns the int intuitively.
C. it won’t compile, new_pages is an undeclared identifier.
D. The code is perfect.


C. it won’t compile, new_pages is an undeclared identifier.

Computer Science & Information Technology

You might also like to view...

Variables that are shared by every instances of a class are __________.

a. public variables b. private variables c. static variables d. instance variables

Computer Science & Information Technology

A DVD rewriteable drive is not compatible with rewriteable CD media

Indicate whether the statement is true or false

Computer Science & Information Technology

Once you have created a table, you can add text, images, and other content to it just as you would for other HTML elements.

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

Computer Science & Information Technology

Find the slope of a line perpendicular to the line with the equation.

A. slope
B. slope
C. slope
D. slope
E. undefined

Computer Science & Information Technology