舉報(bào)

會員
Object–Oriented Programming with Swift 2
最新章節(jié):
Index
IfyouareaniOSdeveloperwhohasabasicideaofobject-orientedprogrammingandwanttoincorporateitsconceptswithSwifttooptimizeyourapplication'scodeandcreatereusableandeasilytounderstandbuildingblocks,thenthisbookisforyou.ThisisaveryusefulresourcefordeveloperswhowanttoshiftfromObjectiveC,C#,Java,Python,JavaScript,orotherobject-orientedlanguagestoSwift.
最新章節(jié)
- Index
- Chapter 8 Extending and Building Object-Oriented Code
- Chapter 7 Object-Oriented Programming and Functional Programming
- Chapter 6 Maximization of Code Reuse with Generic Code
- Chapter 5 Contract Programming with Protocols
- Chapter 4 Inheritance Abstraction and Specialization
品牌:中圖公司
上架時(shí)間:2021-07-23 14:28:10
出版社:Packt Publishing
本書數(shù)字版權(quán)由中圖公司提供,并由其授權(quán)上海閱文信息技術(shù)有限公司制作發(fā)行
- Index 更新時(shí)間:2021-07-23 14:30:13
- Chapter 8 Extending and Building Object-Oriented Code
- Chapter 7 Object-Oriented Programming and Functional Programming
- Chapter 6 Maximization of Code Reuse with Generic Code
- Chapter 5 Contract Programming with Protocols
- Chapter 4 Inheritance Abstraction and Specialization
- Chapter 3 Encapsulation of Data with Properties
- Chapter 2 Structures Classes and Instances
- Chapter 1 Objects from the Real World to Playground
- Appendix A. Exercise Answers
- Summary
- Test your knowledge
- Exercises
- Interacting with an object-oriented data repository through Picker View
- Adding an object-oriented data repository to a project
- Working with object-oriented code in apps
- Defining subscripts with extensions
- Declaring new convenience initializers with extensions
- Adding computed properties to a base type with extensions
- Adding methods with extensions
- Putting together all the pieces of the object-oriented puzzle
- Chapter 8. Extending and Building Object-Oriented Code
- Summary
- Test your knowledge
- Exercises
- Solving algorithms with reduce
- Chaining filter map and reduce
- Combining map with reduce
- Using map to transform values
- Filtering arrays with complex conditions
- Creating a data repository with generics and protocols
- Writing equivalent closures with simplified code
- Creating a functional version of array filtering
- Working with function types within classes
- Understanding functions as first-class citizens
- Refactoring code to take advantage of object-oriented programming
- Chapter 7. Object-Oriented Programming and Functional Programming
- Summary
- Exercises
- Test your knowledge
- Extending base types to conform to custom protocols
- Generalizing existing classes with generics
- Inheriting and adding associated types in protocols
- Using a generic class with two generic type parameters
- Declaring a class that works with two constrained generic types
- Creating shortcuts with subscripts
- Declaring associated types in protocols
- Combining initializer requirements in protocols with generic types
- Using a generic class for multiple types
- Declaring a class that works with a constrained generic type
- Declaring subclasses that inherit the conformance to protocols
- Declaring a class that conforms to multiple protocols
- Declaring a protocol to be used as a constraint
- Understanding parametric polymorphism and generic code
- Chapter 6. Maximization of Code Reuse with Generic Code
- Summary
- Test your knowledge
- Exercises
- Combining class inheritance with protocol inheritance
- Specifying requirements for methods
- Specifying requirements for properties
- Treating instances of a protocol type as a different subclass
- Downcasting with protocols and classes
- Working with methods that receive protocols as arguments
- Combining inheritance and protocols
- Taking advantage of the multiple inheritance of protocols
- Declaring classes that adopt protocols
- Declaring protocols
- Understanding how protocols work in combination with classes
- Chapter 5. Contract Programming with Protocols
- Summary
- Test your knowledge
- Exercises
- Declaring operator functions for specific subclasses
- Taking advantage of operator overloading
- Working with typecasting and polymorphism
- Controlling whether subclasses can or cannot override members
- Overriding properties
- Overriding and overloading methods
- Declaring classes that inherit from another class
- Understanding inheritance
- Creating class hierarchies to abstract and specialize behavior
- Chapter 4. Inheritance Abstraction and Specialization
- Summary
- Test your knowledge
- Exercises
- Building immutable classes
- Creating mutable classes
- Using type properties to create values shared by all the instances of a class
- Transforming values with setters and getters
- Understanding property observers
- Combining setters getters and a related property
- Generating computed properties with setters and getters
- Declaring stored properties
- Understanding the elements that compose a class
- Chapter 3. Encapsulation of Data with Properties
- Summary
- Test your knowledge
- Exercises
- Creating the instances of classes
- Customizing deinitialization
- Customizing initialization
- Declaring classes
- Understanding automatic reference counting
- Understanding deinitialization and its customization
- Understanding initialization and its customization
- Understanding structures classes and instances
- Chapter 2. Structures Classes and Instances
- Summary
- Test your knowledge
- Exercises
- Working with API objects in the Xcode Playground
- Organizing classes with UML diagrams
- Recognizing actions to create methods
- Recognizing variables and constants to create properties
- Generating classes to create objects
- Capturing objects from the real world
- Installing the required software
- Chapter 1. Objects from the Real World to Playground
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- What this book covers
- Preface
- Support files eBooks discount offers and more
- www.PacktPub.com
- About the Reviewers
- About the Author
- Credits
- 版權(quán)頁
- 封面
- 封面
- 版權(quán)頁
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files eBooks discount offers and more
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Chapter 1. Objects from the Real World to Playground
- 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 Playground
- Exercises
- Test your knowledge
- Summary
- Chapter 2. Structures Classes and Instances
- Understanding structures classes and instances
- Understanding initialization and its customization
- Understanding deinitialization and its customization
- Understanding automatic reference counting
- Declaring classes
- Customizing initialization
- Customizing deinitialization
- Creating the instances of classes
- Exercises
- Test your knowledge
- Summary
- Chapter 3. Encapsulation of Data with Properties
- Understanding the elements that compose a class
- Declaring stored properties
- Generating computed properties with setters and getters
- Combining setters getters and a related property
- Understanding 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
- Building immutable classes
- Exercises
- Test your knowledge
- Summary
- Chapter 4. Inheritance Abstraction and Specialization
- Creating class hierarchies to abstract and specialize behavior
- Understanding inheritance
- Declaring classes that inherit from another class
- Overriding and overloading methods
- Overriding properties
- Controlling whether subclasses can or cannot override members
- Working with typecasting and polymorphism
- Taking advantage of operator overloading
- Declaring operator functions for specific subclasses
- Exercises
- Test your knowledge
- Summary
- Chapter 5. Contract Programming with Protocols
- Understanding how protocols work in combination with classes
- Declaring protocols
- Declaring classes that adopt protocols
- Taking advantage of the multiple inheritance of protocols
- Combining 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
- Combining class inheritance with protocol inheritance
- Exercises
- Test your knowledge
- Summary
- Chapter 6. Maximization of Code Reuse with Generic Code
- Understanding 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
- Combining 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 adding associated types in protocols
- Generalizing existing classes with generics
- Extending 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
- Understanding 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 repository with generics and protocols
- Filtering arrays with complex conditions
- Using map to transform values
- Combining map with reduce
- Chaining filter map and reduce
- Solving algorithms with reduce
- Exercises
- Test your knowledge
- Summary
- Chapter 8. Extending and Building Object-Oriented Code
- Putting together all the pieces of the object-oriented puzzle
- Adding methods with extensions
- Adding computed properties to a base type with extensions
- Declaring new convenience initializers with extensions
- Defining subscripts with extensions
- Working with object-oriented code in apps
- Adding an object-oriented data repository to a project
- Interacting with an object-oriented data repository through Picker View
- Exercises
- Test your knowledge
- Summary
- Appendix A. Exercise Answers
- Chapter 1 Objects from the Real World to Playground
- Chapter 2 Structures Classes and Instances
- Chapter 3 Encapsulation of Data with Properties
- Chapter 4 Inheritance Abstraction and Specialization
- Chapter 5 Contract Programming with Protocols
- Chapter 6 Maximization of Code Reuse with Generic Code
- Chapter 7 Object-Oriented Programming and Functional Programming
- Chapter 8 Extending and Building Object-Oriented Code
- Index 更新時(shí)間:2021-07-23 14:30:13