Skip to main content

Part of the book series: Undergraduate Topics in Computer Science ((UTICS))

  • 349k Accesses

Abstract

Python is an object-oriented language. This means, not only can we use objects, but we can define our own classes of objects. A class is just another name for a type in Python. We have been working with types (i.e. classes) since the first chapter of the text. Examples of classes are int, str, bool, float and list.

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

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kent D. Lee .

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer-Verlag London

About this chapter

Cite this chapter

Lee, K.D. (2014). Defining Classes. In: Python Programming Fundamentals. Undergraduate Topics in Computer Science. Springer, London. https://doi.org/10.1007/978-1-4471-6642-9_7

Download citation

  • DOI: https://doi.org/10.1007/978-1-4471-6642-9_7

  • Publisher Name: Springer, London

  • Print ISBN: 978-1-4471-6641-2

  • Online ISBN: 978-1-4471-6642-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics