preface chapter 1: objects from the real world to yground installing the required software capturing objects from the real world generating classes to create objects recognizing variables and constants to create properties recognizing actions to create methods organizing classes with uml diagrams working with api objects in the xcode yground exercises test your knowledge summary chapter 2: structures, classes, and instances understan structures, classes, and instances understan initialization and its customization understan deinitialization and its customization understan automatic reference counting declaring classes customizing initialization customizing deinitialization creating the instances of classes exercises test your knowledge summary chapter 3: encaulation of data with properties understan the elements that e a class declaring stored properties generating puted properties with setters and getters bining setters, getters, and a related property understan property observers transforming values with setters and getters using type properties to create values shared by all the instances of a class creating mutable classes buil immutable classes exercises test your knowledge summary chapter 4: inheritance, abstraction, and speization creating class hierarchies to abstract and speize behavior understan inheritance declaring classes that inherit from another class overri and overloa methods overri properties controlling whether subclasses can or cannot override members working with typecasting and polymorphism taking advantage of operator overloa declaring operator functions for specific subclasses exercises test your knowledge summary chapter 5: contract programming with protocols understan how protocols work in bination with classes declaring protocols declaring classes that adopt protocols taking advantage of the multiple inheritance of protocols bining inheritance and protocols working with methods that receive protocols as arguments downcasting with protocols and classes treating instances of a protocol type as a different subclass specifying requirements for properties specifying requirements for methods bining class inheritance with protocol inheritance exercises test your knowledge summary chapter 6: mamization of code reuse with generic code understan parametric polymorphism and generic code declaring a protocol to be used as a constraint declaring a class that conforms to multiple protocols declaring subclasses that inherit the conformance to protocols declaring a class that works with a constrained generic type using a generic class for multiple types bining initializer requirements in protocols with generic types declaring associated types in protocols creating shortcuts with subscripts declaring a class that works with two constrained generic types using a generic class with two generic type parameters inheriting and ad associated types in protocols generalizing esting classes with generics exten base types to conform to custom protocols test your knowledge exercises summary chapter 7: object-oriented programming and functional programming refactoring code to take advantage of object-oriented programming understan functions as first-class citizens working with function types within classes creating a functional version of array filtering writing equivalent closures with simplified code creating a data reitory with generics and protocols filtering arrays with plex conditions using map to transform values bining map with reduce chaining filter, map, and reduce solving algorithms with reduce exercises test your knowledge summary chapter 8: extendin and buildin obect-oriented code putting together all the pieces of the object-oriented puzzle ad methods with extensions ad puted properties to a base type with extensions declaring new convenience initializers with extensions defining subscripts with extensions working with object-oriented code in ap ad an object-oriented data reitory to a project interacting with an object-oriented data reitory through picker view exercises test your knowledge summary appendix: exercise answers chapter 1, objects from the real world to yground chapter 2, structures, classes, and instances chapter 3, encaulation of data with properties chapter 4, inheritance, abstraction, and speization chapter 5, contract programming with protocols chapter 6, mamization of code reuse with generic code chapter 7, object-oriented programming and functional programming chapter 8, exten and buil object-oriented code index
以下为对购买帮助不大的评价