Implementing Functions
Data Members
Member Functions
Constructors
Miscellaneous
100

Do data members belong in the private or public interface?

Private interface

100

What is an accessor?

A function that allows reading the value of a private data member.


100

What is a constructor called when it is defined without any parameters?

Default Constructor

100

Is a class a blueprint or a type for creating objects?

A class is a blueprint for creating projects.

200

What is a mutator?

A function that allows changing the value of a private data member.

200

True or False: The main purpose of a constructor is to display an object?

False

200

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

Encapsulation

300

Given a class Soda, how would you correctly define a member function Drink() outside the class?

void Soda :: Drink() { cout << "              ";}

300

What analogy can be used for different data members?

The clock analogy

300

What notation do member functions use?

Dot Notation

300

What is the name of the constructor?

The same as the name of the class

300

A class describes a set of objects with the same what?

Behavior

400

True or False: Is dot notation needed when calling a member function inside another member function?

False

500

When implementing a function, what is this symbol called? 

 ::

Scope Resolution Operator

500

What is the difference between an implicit and explicit parameter?

Explicit parameters are provided by the programmer, while implicit parameters are provided by the compiler.