<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"""
A module with a slightly more interesting class

Author: Steve Marschner (srm2), Walker M. White (wmw2)
Date:   October 1, 2017 (Python 3 Version)
"""


class Example2(object):
    """
    A class that defines some things.
    """

    # This is a class variable.
    a = 29

    # This is a method that writes to an instance variable.
    def set_b(self, x):
        """
        Assigns x to instance variable b
        """
        print(type(self))
        self.b = x
    
    # This is a method that reads
    # from a class variable and an
    # instance variable.
    def f(self):
        """
        Returns: multiple of class variable a and instance variable b
        """
        return self.a * self.b
</pre></body></html>