Python II - Intro to Obiect-Oriented Programming (OOP)
In this section we will explore to basic elements of almost every modern progrmaming languages. By knowing this two concepts your basic programming toolkit might be considered as complete. Note that some programmers (it is an old practice in Python) could write entire softwares just with functions
. We introduce you and advice you to use also classes
. With both classes
and functions
we will show you a programming paradigm called Object-Oriented Programming (OOP). It’s a way to organize your code in objects or classes that contains all the data and functions you need to achieve your goals (for more info, what is OOP? or this book by Booch et al.).
Let’s go through the basics first:
- functions: click here.
- classes: click here.