/OOP_Python

A short course introducing Object Oriented Programming in Python.

Primary LanguageJupyter Notebook

OOP_Python

Object-Oriented Programming in Python.

Contents

  • Basic OOP concepts: classes and instances
  • Instance variables vs class variables
  • Class methods and static methods
  • Inheritance
  • Special class methods (dunder methods)
  • Decorators: properties, setters, getters
  • Class documentation

Course project: N-Body Simulation

  • Defining classes: Vector, Body, Universe
  • Implementing required classes
  • Running simulation

Example simulation results:

Videos

Reference