NobleBlocks

Research indexBook chapter

Constructing Classes, Structures, and Enumerations

Gardner

Apress eBooks1 Jan 2014

NobleIDark:/48914/w1/20260521/A835BDD8DOI10.1007/978-1-4842-0406-1_7

Paywalled

The full text is at the publisher

You can read the abstract here, or open it at the publisher.

Read at the publisher

Abstract

As alluded to in previous chapters, and revealed fully in this one, Swift breaks new ground with class types, and upgrades structures and enumerations to first-class status. In fact, there is less to say about the differences than similarities between classes and structures in Swift, and enumerations are not far off the mark, either. This chapter will introduce each of these constructs, first at a high level and then followed by deeper analysis of major considerations such as initialization, definition of properties and methods, and selection guidelines.

Discussion

Topics

More

Suggest a correction or report