The ______ keyword refers to the specific instance of an object, and is used when calling a
method, or getting or setting a property within the definition of a type.
Back
implicitly unwrapped optional
Front
is an optional that can also be used like a nonoptional value
- without the need to unwrap the optional value each time it is access - because it's assumed to
always have a value after that value is initially set. Your app will crash if you attempt to access
an implicitly unwrapped optional that's currently nil.
Back
anyObject
Front
can represent any class within swift, but not a structure.
Back
any
Front
as the name implies, can represent an instance of any type: string, double,
function, or whatever.
Back
stack view
Front
Use a ______ to set up elements in the user interface in a column from top to bottom or in a
row from left to right.
Back
as!
Front
is a forced form of a type cast operator. This version will force the downcast to the
specified type.
Back
index path
Front
represents that path to a specific node in a tree of nested array collections. An
index path is commonly used with table views to identify the section and row of a cell
Back
Type Properties
Front
are properties that belong to the type itself and is accessed using the type's
name.
Back
force-unwrap operator
Front
Use the ___________ after an optional value to access its underlying value.
Force-unwrapping an optional value will result in a crash if the value is nil.
Back
type methods
Front
are methods that belong to the type itself and is accessed using the type's
name.
Back
optional
Front
is a value that contains either an underlying value or nil
Back
type casting
Front
is a way to check the type of an object, or to treat that object as a different
superclass or subclass from somewhere else in its own class hierarchy
Back
instance property
Front
_____ are properties that belong to an instance of a particular type
Back
equatable
Front
allows you to define how instances of the same type are equal to each other.
Back
property observer
Front
_________ are attached to a property to respond to changes in property's value and is
called every time a property's value is set.
Back
optional binding
Front
is the process of attempting to assign an optional value to a constant in a
conditional statement to see if the optional contains an underlying value.
Back
type inspection
Front
is used to determine, or check, the specific type of data.
Back
optional chaining
Front
allows you to work with nested optionals that are conditionally unwrapped.
If any value along the way is nil, the action will fail.
Back
composition
Front
is an object oriented programming concept that utilises the use of protocols to
achieve a similar polymorphic-behavior that is otherwise difficult to achieve using inheritance.
Back
dequeuing
Front
Table views use a special caching system that, whenever possible, reuse cells that have already
been displayed. The process of choosing and preparing the cell for reuse is called _______.
Back
delegation
Front
is a design pattern, or common practice, that enables a class or structure to hand
off, or delegate, some of its responsibilities to an instance of another type.
Back
table view cell
Front
refers to objects that draw visible rows, and the table view cell caches those
objects as long as the rows are visible.
Back
auto layout
Front
is a feature in XCode's Interface Builder that allows you to build adaptive
interfaces so your user interface elements maintain the same relative positions, no matter the
screen's size or orientation.
Back
Initializer
Front
A _______ sets up an instance so it's ready to be used. After you declare a name for a
constant or variable, you initialize the constant or variable by assigning its first value.
Back
customStringconvertible
Front
allows you to control how your custom objects are printed to the
console.
Back
Constraint
Front
is a rule in Auto Layout that defines how views should be laid out or sized.
Back
instance method
Front
An _________ is a function declared inside a type — such as a struct, a class, or an
enum — whose behavior depends on the current state of an individual entity.
Back
optional value
Front
can have optional properties (like a box within a box), referred to as nested
optionals
Back
base class
Front
is at the root of its class hierarchy, and therefore doesn't have a superclass.
Back
property
Front
A ________ is a piece of data held by a structure, class, or enumeration.
Back
Computer Property
Front
Swift has a feature called ______ that allows a property to perform logic that
returns a calculated value.
Back
as?
Front
is a conditional cast operator that attempts to downcast the value to a more specific type
and store it in a new constant or variable
Back
superclass
Front
is a parent of another class (which is known as its subclass).
Back
class
Front
A _____ defines properties to store values, defines methods to provide functionality, and defines
initializers to setup their initial state.
Back
inheritance
Front
is when a class is a subclass of another class and gets all of its behavior (methods,
properties, and other characteristics).
Back
failable initializer
Front
refers to an initializer that may fail and will return nil as a result.
Back
subclass
Front
is a child of another class (which is know as its superclass)
Back
nil
Front
indicates that a value is missing
Back
Memberwise initializer
Front
When you create a new instance of a structure, Swift automatically creates a _______ — which you can then use to set each property on the new instance by name.
Back
table view
Front
user interface displays several items or records as a list.
Back
downcasting
Front
to cast an object to a more specific type — for example, casting from a
generic Any to an Int, or from a superclass to a subclass.
Back
comparable
Front
allows you to define how instances of the same type are sorted.
Back
protocol
Front
is a blueprint of methods, properties, and other requirements that suit a particular
task or piece of functionality.
Back
conditional cast
Front
casts an instance to the specified type only if it's possible to do so.