Design Patterns & Const Correctness Flashcards
What is a design pattern?
What is the process of discovering a design pattern?
What is the process of applying a design pattern?
What are the four main components of design patterns?
What are some of the details of design patterns?
What are the three main types of design patterns?
What is the “Gang oof Four Design Patterns”?
What are the benefits of Design Patterns?
What are the Drawbacks of Design Patterns?
What is the Model-View-Controller design pattern?
What is the Model portion of the MVC design pattern?
What is the View portion of the MVC design pattern?
What is the Controller portion of the MVC design pattern?
MVC design pattern diagram:
What is the Model View Presenter design pattern?
What are the benefits of the MVC design pattern?
What are the two main goals of creational design patterns?
With creational design patterns, the system at large knows about what?
What are some of the creational design patterns?
The const constraint enforced by what?
What is the ‘right-to-left’ rule for pointers and const?
Const correctness example: what are the following variables:
Const correctness example:
Const correctness example:
Const correctness example:
Const correctness example:
When the data pointed to is constant, where does the ‘const’ need to go?
Can an address of a non-const object be assigned to a const pointer?
Can you assign the address of const object to a non-const pointer?
How are strings the exception to const correctness?
What can be const with regards to functions?
What is a const return value? Why would you return a const value?
What do we almost always want to return as a const?
What are const parameters?
What is another advantage of accepting const reference parameters?
What is a const function? What is the difference between a const function and non-const function?
What really happens when we call a function on an object? How does a const function apply to this?
Why does having a function be const prevent the private data from being changed?
What guarantee does a const function make?
What does it mean for a member function to be const? What is the difference between bitwise constness and conceptual constness?
What is conceptual constness?
How the the length() function an example of conceptual constness?
What keyword is used to allow conceptual constness?
What do const member functions specify? Members functions differing only in their constness can be…
Const function example:
In what situations should a pointer or member function be declared const?
What is the rule of thumb for const functions? How can it help software?