Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Classes

Chapter 5. Classes

This chapter covers the following:

  • Defining classes

  • Using class attributes

  • Defining functions in a class

  • Accessing class variables in instance methods

  • Creating instances and initializing instance variables through the __init__() method

  • Using class and static methods

  • Understanding garbage collection

  • Understanding inheritance—single, multilevel, and multiple inheritance

  • Using access control specifiers

  • Method overriding

  • Operator overloading

  • Polymorphism

  • Using properties and descriptors


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint