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

1. Only the private section of a class is accessible from the outside.
2. Inheritance allows a programmer to create a new class from an existing class by adding more data and/or functions.
3. A user can (usually) only access the data of a class by calling its member functions.
4. The semicolon after the closing brace of a class definition is optional.
5. Identifiers in the private section of a class can only be accessed within the class itself.


1. False
2. True
3. True
4. False
5. True

Computer Science & Information Technology

You might also like to view...

When using the password data type, any information that a user enters will be displayed as a series of ____ or asterisks, protecting the information from prying eyes.

A. dashes B. dots C. ampersands D. plus signs

Computer Science & Information Technology

The sampling rate is measured in ____.

A. MHz B. MB C. KHz D. GB

Computer Science & Information Technology

As audio is added to your presentation, a player with a Play button is automatically added to the slide

Indicate whether the statement is true or false

Computer Science & Information Technology

Describe some of the traps for unwary experts.

What will be an ideal response?

Computer Science & Information Technology