How Do You Use an Unbound Method in Python?

Problem scenario
You want to write a Python program with a unbound method.  What should you do?

The definition of an unbound method is a method or function that is not part of a class.  Run this program and you will invoke an unbound method:

#!/usr/bin/env python

def unboundexample():
  print("This function is not bound to a class.  Therefore it will work without an object being created")


Leave a comment

Your email address will not be published. Required fields are marked *