iOS10 Swift Playgrounds 8-11 Flashcards
argument
The part you add within the parentheses of functions. E.g., in move(distance: 3), 3 is the argument.
assignment
Using an = sign, to put the right hand value into the left hand object (container).
constant
A container object that can’t change once it’s set. Declared with “let”
declare
To create a new object such as a function, variable or custom type.
dot notation
a form of syntax used to access the properties or call the methods of an instance. E.g., expert.toggleSwitch() calls the toggle switch() method on the instance expert.
initialization
The act of creating a new instance of a type, which includes setting initial values for any properties of the type.
instance
A value of a particular type. E.g., in let greenPortal = Portal(), greenPortal is an instance of type Portal.
Int
A type that stores an integer (a number that has no decimal points such as 10 or -42.
method
A function that’s defined inside a type (and that comes after dot notation).
property
A variable (a named container that stores a value) defined inside a type.
syntax
the grammar and rules of arranging words for any language
type
A named group with shared properties (the features) and methods (the behaviors).
variable
A container object that can change after it’s set. Declared with “var”
string
A type that stores a series of characters, such as “hello, world” or “42”.
slate
The stored information of a variable, program, or system at a given time