<< Chapter < Page Chapter >> Page >
This is the first of several modules that explain classes and objects in Python. This module provides an overview. Future modules will dig deeper into the details of using classes and objects in Python.

Table of contents

Preface

This module is one in a collection of modules on Python designed for teaching ITSE 1359 Introduction to Scripting Languages: Python at Austin Community College in Austin, TX.

What you have learned

Previous modules have helped you to learn the basics of programming in Python such as syntax, numbers, variables, strings, scripts, lists, tuples,dictionaries, operators, etc.

Previous modules have also helped you to learn about control flow including if statements, while loops, for loops, functions, function arguments, etc.

What you will learn

The time has come for you to learn about classes and objects . This is the first of several modules that explain classes and objects in Python.

This module provides an overview. Future modules will dig deeper into the details of using classes and objects.

Viewing tip

I recommend that you open another copy of this module in a separate browser window and use the following links to easily find and view the Figuresand the Listings while you are reading about them.

(Note to blind and visually impaired students: Most of the Figures and all of the Listings inthis module are presented in plain text format and should be accessible using an audio screen reader or a braille display. Note however that the requiredindentation may not be properly represented by an audio screen reader.)

Figures

  • Figure 1 . Output from the code in Listing 2.
  • Figure 2 . Output from the code in Listing 3.
  • Figure 3 . Output from the code in Listing 4.
  • Figure 4 . Output from the code in Listing 5.
  • Figure 5 . Visualizing a class definition.
  • Figure 6 . Output from the program in Listing 9.

Listings

Preview

This module will concentrate primarily on a discussion of the Python class and objects created using Python classes.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Itse 1359 introduction to scripting languages: python. OpenStax CNX. Jan 22, 2016 Download for free at https://legacy.cnx.org/content/col11713/1.32
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Itse 1359 introduction to scripting languages: python' conversation and receive update notifications?

Ask