Python Class

From GM-RKB
Jump to navigation Jump to search

A Python Class is a class data structure that is a Python data structure.

  • Example(s):
    • class Person(object):
          """__init__() functions as the class constructor"""
          def __init__(self, name=None, job=None, quote=None):
              self.name = name
              self.job = job
              self.quote = quote
  • Counter-Example(s):
  • See: Python List.


References