45 Multiple choice questions
- A special name that indicates precisely where the program begins execution
- c++ language source file
- [instanceName release];
- accessor methods
- (@"The integer is %i", number)
- [ClassOrInstance method]; [receiver message]; [receiver message: input];
- ClassName newInstanceName;
- Define the Methods
- #import <Foundation/Foundation.h>
- Declare the Methods
- OBJECTIVE C source file
- affects the "state" of that object
- Class Method
- Fatal Error
- \n (backslash n)
- machine depenedent
- A language in which programs are defined by procedures and functions that operate on a set of data
- Dennis Ritchie @ Bell Labs
- newInstance = [ClassName alloc];
- object file (compiled file)
- header file
- C language source file
- Instance Method
- -(returnType) methodName: (argType) argName;
- ClassName *newInstance = [[ClassName alloc] init];
- A set of variables and associated methods. An object can be sent messages to cause one of it methods to be executed.
- perl source file
- The actions performed on the instance
- gcc -framework Foundation filename -o progname
- #import "myprog.h"
- OBJECTIVE C++ source file
unique occurence of class. A concrete representation of a class.
Instances are objects, typically created by sending an "alloc" or "new"
message to a class object
- Holds a memory address "pointing" to the location of the object's data in memory
- indicates it is creating a reference (or pointer) to an object
- values without decimal places
for an object is sotred in its instance variables and is accessed only
by the object's methods. This maintains data integrity.
set of instance variable and methods that have access to those
variables. After a class is defined, instances of the class (that is
objects) can be created. A blueprint.
- newInstance = [newInstance init];
- @"Strings Rule" (The "@" symbol indicates an NSString object)
- ClassName *newInstance = [ClassName new];
- ./ (period backslash)