Swift Flashcards
(14 cards)
What is an object
something you can send a message to
What is a message
imperative instruction
what is dot notation
object dot message
what is extending an object
define your own message that type
what are the three object types in swift
class, struct, enum
what is an object
“object” refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures.
what is an object-based language
A language is usually considered object-based if it includes the basic capabilities for an object: identity, properties, and attributes.
what is an object-oriented language
A language is considered object-oriented if it is object-based and also has the capability of polymorphism and inheritance.
what is a variable in swift
a variable name is a reference to an object
what does let do
declares a constant var
what can go into the top level of a swift file
import statements, variable declarations, function definitions, object type declarations
what is a property
a variable declared at the top of a class scope
what is a method
a function declared at the top of a class scope
what is a member of an object declaration
all the properties, methods and objects at the top of a class scope