NAME

Question types


Start with


Question limit

of 10 available terms

Print test

10 True/False questions

  1. 1.Associative ReferencesThe for...in Syntax
    Adopting Fast Enumeration
    Using Fast Enumeration

          

  2. 8. ObjectsMethods and Selectors
    Varying the Message at Runtime
    The Target-Action Design Pattern
    Avoiding Messaging Errors

          

  3. 3.Enabling Static BehaviorThe for...in Syntax
    Adopting Fast Enumeration
    Using Fast Enumeration

          

  4. 6.Exception HandlingEnabling Exception-Handling
    Exception Handling
    Catching Different Types of Exception
    Throwing Exceptions

          

  5. 7.The Runtime SystemThe for...in Syntax
    Adopting Fast Enumeration
    Using Fast Enumeration

          

  6. 5.Methods and SelectorsMethods and Selectors
    Varying the Message at Runtime
    The Target-Action Design Pattern
    Avoiding Messaging Errors

          

  7. 10. idAs the name implies, object-oriented programs are built around objects. An object associates data with the particular operations that can use or affect that data. Objective-C provides a data type to identify an object variable without specifying a particular class of the object.

          

  8. 4.SelectorsMethods and Selectors
    Varying the Message at Runtime
    The Target-Action Design Pattern
    Avoiding Messaging Errors

          

  9. 2.Fast EnumerationMethods and Selectors
    Varying the Message at Runtime
    The Target-Action Design Pattern
    Avoiding Messaging Errors

          

  10. 9.Object BasicsAn object associates data with the particular operations that can use or affect that data. In Objective-C, these operations are known as the object's methods; the data they affect are its instance variables (in other environments they may be referred to as ivars or member variables). In essence, an object bundles a data
    structure (instance variables) and a group of procedures (methods) into a self-contained programming unit.
    In Objective-C, an object's instance variables are internal to the object; generally, you get access to an object's state only through the object's methods (you can specify whether subclasses or other objects can access instance variables directly by using scope directives, see "The Scope of Instance Variables" (page 36)). For others to find out something about an object, there has to be a method to supply the information. For example, a rectangle would have methods that reveal its size and position.
    Moreover, an object sees only the methods that were designed for it; it can't mistakenly perform methods intended for other types of objects. Just as a C function protects its local variables, hiding them from the rest of the program, an object hides both its instance variables and its method implementations.