Skip to main content

Section outline

  • Session 1: Introduction to Python OOP (3 Hours)

    Understanding Python Native Types

    • What are classes and objects?
    • Methods and special methods (__init__, __str__)
    • Built-in class attributes (__dict__, __name__)

    • Hands-on Lab:
    • Building a trading application using the class and object design model.

     

    Session 2: Inheritance & Exception Handling (4 Hours)

    Python Inheritance & Types

    • Using the super() function
    • Code reuse and extending functionality
      Handling Exceptions & Custom Errors
    • Try-except-finally blocks
    • Raising custom exceptions
      Decorators & Python Closures
    • Function decorators (@staticmethod, @classmethod)
    • Advanced closure functions

    • Hands-on Lab:
    • Implementing class inheritance & handling exceptions.
    • Using decorators for reusable components.