Level 18 Level 20
Level 19

iOS 8 Programming Fundamentals with Swift


30 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
Classes, Struts, Enums
What are the three flavors of Object Types?
Variables
Name given to a storage area that our programs can manipulate
var
variable declaration
let
constant declaration
implicitly; They can't change once declared
Are data types declared explicitly or implicitly?
Functions
Group of statements that together perform a task. Every C program has at least one function, which
main.swift
File that actually runs when the program runs
Module Import Statements, Variable Declarations, Function
What can appear in the top level of a file?
Scope
The ability of a thing to see other things
Scope Hierarchy
Things can see other things at their own level and higher
Lifetime
A thing lives as long as its surrounding scope lives
Object Members
Things at the top level of an object declaration
name
A variable declared at the top level of an object declaration
sayName
A function declared at the top level of an object declaration, so it is called a property of that object
Namespaces
Named region of a program
namespace?
namespace.ThingToBeAccessed
Modules
Top-Level Namespaces
Instances
Instantiated object type
class Dog{
Defining a type
Instantiating a Type
let fido = Dog()
fido.bark()
Sending Instance Messages
Dog.bark
//Compile Error
Why Instances?
The value of an instance property is defined with respect to a particular instance.
self
Way to refer to an object within its own methods
The private keyword
Prevents other objects from either reading or modifying property values in the class type.
Encapsulation of functionality
Each object does its own job and its details are hidden from other objects
Maintenance of State
Each individual instance is a bundle of data that it maintains, often the data is private
stack
Organized data management
Push and Pop
Push adds a given piece of data to the set
API (Application Programming Interface)
Sum total of messages that each object type is eligible to be sent by