Articles
OOP introduces new ways to think about code. It also introduces new ways to get it wrong. These are the most common mistakes — and what to do instead.
1. Forgetting self
c…
You've covered the full OOP landscape. Before moving on, here's everything in one place.
// Class and object
class Animal:
def __init__(self, name, species, age):
…
Napoleon Bonaparte was arguably the greatest military mind in history. He reformed armies, rewrote tactics, and built an empire that stretched from Lisbon to Warsaw. He understood…
Two classes. One system.
Task — knows its own data. Title, priority, status, deadline, timestamp.
TaskList — owns the tasks. Adds them, saves them, loads them, displ…
The foundation is solid. Tasks are added, saved, loaded, displayed.
Round 2 completes the system — show by deadline, update status, filter, delete, export report.
Update t…
Two classes. Seven operations. A working task manager.
But look at what you actually built — and where it can go.
How far this can go
A Project class. Right now you have …