Object-Oriented Programming
Implementing Classes
Member Functions
Data Members
Public / Private Interfaces
100

True or False: Each string is an object.

True

100

A class is considered the ____ for an object.

blueprint

100

Member functions are invoked using ____ notation.

dot

100

An object stores its ___ in the data members.

data

100

What does the public interface of a class consist of?

All member functions

200

Each object has its own set of ____.

data

200

What are the two sections of a class?

Public and Private

200

What are the two main types of member functions?

Mutators and Accessors

200

 Where are private data members able to be accessed?

Member Functions

200

Which interface are the data members declared?

The Private Interface

300

What are examples of object-oriented programming?

Strings, cin, and cout

300

How many data members is a class able to have?

Infinite

300

Where are constructors declared? 

Inside the Class Definition

300

To decide on which data members to define, start with the ___ functions.

accessor

300

What is Encapsulation?

The process of providing a public interface while hiding the implementation details.

400

Describe Object-Oriented Programming

A programming style in which tasks are solved by collaborating objects.

400

True or False: Class names are commonly declared in camel cases.

False

400

Where do you define the parameters of a member function?

When declaring the function (in the class) and implementing the function.

400

True or False: Are data members passed by reference by default?

False

400

What functions alter the data in the private interface?

Mutator Functions, Setter Functions

500

Why was object-oriented programming created?

As programs became larger, it made it harder to maintain a large collection of functions.

500

Define a simple class with two attributes and two member functions.

(Depends on whiteboard answer).

500

When do you add "const" to a member function?

When the member function only accesses/returns a data member.

500

True or False: Can an object of a class be a data member?

True

500

Which interface must be defined first, Public or Private?

Neither, it doesn’t matter.