Classes

Simple class definition

class ExampleClass:
   '''
   This is an example class!
   
   '''
   
   class_variable='something'                # This is a class variable>>

   
   def __init__(self,name=None):            # special methods between __ strings
      '''
       You should add docstrings here as well.
       '''        
       print('An Example is born!')
       self.name=name                      # attribute of an object
           
  def set_name(self,name):                # method of an object
       '''
       This is also a docstring.
       '''
       
       self.name=name                       # attribute of an object