Skip to main content

Swift Classes, Objects, and Methods

  • Chapter
  • First Online:
Swift for Absolute Beginners
  • 1853 Accesses

Abstract

If you haven’t already read Chapter 6, please do so before reading this one because it provides a great introduction to some of the basics of Swift. This chapter builds on that foundation. By the end of this chapter, you can expect to have a greater understanding of the Swift language and how to use the basics to write simple programs. The best way to learn is to take small programs and write (or rewrite) them in Swift just to see how the language works.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    By using either code or Interface Builder, you can customize how the Label object reacts to text that is too large to fit. The behavior described is based upon typical defaults for the Label object.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Gary Bennett

About this chapter

Cite this chapter

Bennett, G., Lees, B. (2015). Swift Classes, Objects, and Methods. In: Swift for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0886-1_7

Download citation

Publish with us

Policies and ethics