书馨卡帮你省薪 2024个人购书报告 2024中图网年度报告
欢迎光临中图网 请 | 注册
> >>
Swift 2面向对象编程-(影印版)

Swift 2面向对象编程-(影印版)

出版社:东南大学出版社出版时间:2017-04-01
开本: 32开 页数: 307
¥19.3(2.6折)?

预估到手价是按参与促销活动、以最优惠的购买方案计算出的价格(不含优惠券部分),仅供参考,未必等同于实际到手价。

中 图 价:¥38.5(5.2折)定价  ¥74.0 登录后可看到会员价
加入购物车 收藏
运费6元,满39元免运费
?新疆、西藏除外
温馨提示:5折以下图书主要为出版社尾货,大部分为全新(有塑封/无塑封),个别图书品相8-9成新、切口
有划线标记、光盘等附件不全详细品相说明>>
本类五星书更多>

Swift 2面向对象编程-(影印版) 版权信息

  • ISBN:9787564170790
  • 条形码:9787564170790 ; 978-7-5641-7079-0
  • 装帧:一般胶版纸
  • 册数:暂无
  • 重量:暂无
  • 所属分类:>>

Swift 2面向对象编程-(影印版) 本书特色

作为一本易于操作的学习指南,由加斯顿·C.希 勒*的《Swift2面向对象编程(影印版)(英文版)》包 含了大量swift面向对象编程常见问题的解决方法。
书中以真实的场景帮助你了解对象的概念,演示如何 利用对象轻松地编写出易于理解和重用的代码。
你将从中学习到使用swift的数据封装特性来保 护和隐藏数据,通过编写能够处理不同类型对象的代 码来*大化地实现代码重用,见识到参数多态的威力 以及如何在普通代码中使用继承和多重继承。之后, 你将学习重构现有代码以及使源代码易于维护和扩展 的组织方法。
阅读完本书之后,你将能够编写出质量*高、* 健壮、*具备可重用性的代码,这一切都有助于你构 建*棒的应用程序。

Swift 2面向对象编程-(影印版) 内容简介

本书包含了大量Swift面向对象编程常见问题的解决方法。书中以真实的场景帮助你了解对象的概念,演示如何利用对象轻松地编写出易于理解和重用的代码。你将从中学习到使用Swift的数据封装特性来保护和隐藏数据,编写能够处理不同类型对象的代码来*大化地实现代码重用,见识到多态化的威力以及如何在普通代码中使用继承和多重继承。除此之外,还会接触到已有代码重构以及能够简化源代码维护和扩展的组织方法.阅读完本书之后,你将能够编写出质量更高、更健壮、更具备可重用性的代码,这一切都有助于构建更棒的应用程序。

Swift 2面向对象编程-(影印版) 目录

Preface Chapter 1: Objects from the Real World to PlaygroundInstalling the required softwareCapturing objects from the real worldGenerating classes to create objectsRecognizing variables and constants to create propertiesRecognizing actions to create methodsOrganizing classes with UML diagramsWorking with API objects in the Xcode PlaygroundExercisesTest your knowledgeSummary Chapter 2: Structures, Classes, and InstancesUnderstanding structures, classes, and instancesUnderstanding initialization and its customizationUnderstanding deinitialization and its customizationUnderstanding automatic reference countingDeclaring classesCustomizing initializationCustomizing deinitializationCreating the instances of classesExercisesTest your knowledgeSummary Chapter 3: Encapsulation of Data with PropertiesUnderstanding the elements that compose a classDeclaring stored propertiesGenerating computed properties with setters and gettersCombining setters, getters, and a related propertyUnderstanding property observersTransforming values with setters and gettersUsing type properties to create values shared by all the instances of a classCreating mutable classesBuilding immutable classesExercisesTest your knowledgeSummary Chapter 4: Inheritance, Abstraction, and SpecializationCreating class hierarchies to abstract and specialize behaviorUnderstanding inheritanceDeclaring classes that inherit from another classOverriding and overloading methodsOverriding propertiesControlling whether subclasses can or cannot override membersWorking with typecasting and polymorphismTaking advantage of operator overloadingDeclaring operator functions for specific subclassesExercisesTest your knowledgeSummary Chapter 5: Contract Programming with ProtocolsUnderstanding how protocols work in combination with classesDeclaring protocolsDeclaring classes that adopt protocolsTaking advantage of the multiple inheritance of protocolsCombining inheritance and protocolsWorking with methods that receive protocols as argumentsDowncasting with protocols and classesTreating instances of a protocol type as a different subclassSpecifying requirements for propertiesSpecifying requirements for methodsCombining class inheritance with protocol inheritanceExercisesTest your knowledgeSummary Chapter 6: Maximization of Code Reuse with Generic CodeUnderstanding parametric polymorphism and generic codeDeclaring a protocol to be used as a constraintDeclaring a class that conforms to multiple protocolsDeclaring subclasses that inherit the conformance to protocolsDeclaring a class that works with a constrained generic typeUsing a generic class for multiple typesCombining initializer requirements in protocols with generic typesDeclaring associated types in protocolsCreating shortcuts with subscriptsDeclaring a class that works with two constrained generic typesUsing a generic class with two generic type parametersInheriting and adding associated types in protocolsGeneralizing existing classes with genericsExtending base types to conform to custom protocolsTest your knowledgeExercisesSummary Chapter 7: Object-Oriented Programming and Functional ProgrammingRefactoring code to take advantage of object-oriented programmingUnderstanding functions as first-class citizensWorking with function types within classesCreating a functional version of array filteringWriting equivalent closures with simplified codeCreating a data repository with generics and protocolsFiltering arrays with complex conditionsUsing map to transform valuesCombining map with reduceChaining filter, map, and reduceSolving algorithms with reduceExercisesTest your knowledgeSummary Chapter 8: Extendin and Buildin Ob'ect-Oriented CodePutting together all the pieces of the object-oriented puzzleAdding methods with extensionsAdding computed properties to a base type with extensionsDeclaring new convenience initializers with extensionsDefining subscripts with extensionsWorking with object-oriented code in appsAdding an object-oriented data repository to a projectInteracting with an object-oriented data repository throughPicker ViewExercisesTest your knowledgeSummary Appendix: Exercise AnswersChapter 1, Objects from the Real World to PlaygroundChapter 2, Structures, Classes, and InstancesChapter 3, Encapsulation of Data with PropertiesChapter 4, Inheritance, Abstraction, and SpecializationChapter 5, Contract Programming with ProtocolsChapter 6, Maximization of Code Reuse with Generic CodeChapter 7, Object-Oriented Programming and FunctionalProgrammingChapter 8, Extending and Building Object-Oriented Code Index
展开全部

Swift 2面向对象编程-(影印版) 作者简介

Gaston C. Hillar is an Italian and has been working with computers since he was 8 years old. In the early 80s, he began programming with the legendary Texas TI-99/4A and Commodore 64 home computers. Gaston has a bachelor's degree in computer science and graduated with honors. He also holds an MBA in which he graduated with an outstanding thesis. At present, Gaston is an independent IT consultant and a freelance author who is always looking for new adventures around the world. He has been a senior contributing editor at Dr. Dobb's and has written more than a hundred articles on software development topics. Gatson was also a former Microsoft MVP in technical computing. He has received the prestigious Intel Black Belt Software Developer award seven times.

商品评论(0条)
暂无评论……
书友推荐
本类畅销
编辑推荐
返回顶部
中图网
在线客服