Coder Course Pages

Abstraction & Design Thinking (Capstone Task)

Introduction You have now learned all the core building blocks of Object-Oriented Programming: Classes and objects Attributes, methods, and self Constructors and object state Inheritance and super() Encapsulation Polymorphism The final step is abstraction. Abstraction is not about writing more code — it’s about writing better-designed code. What Is Abstraction? Abstraction means: Focusing on what […]

Abstraction & Design Thinking (Capstone Task) Read More »

Methods Inside Classes

Introduction So far, you’ve learned how to: Create classes Use __init__ to store data Use self to give each object its own attributes In this lesson, you’ll learn how to: Define methods inside a class Use self to access object data inside methods Call methods on objects Methods allow objects to do things, not just

Methods Inside Classes Read More »

Why Object-Oriented Programming?

Introduction As programs become larger and more complex, organising code clearly and efficiently becomes increasingly important. In earlier Python programs, we often use variables and functions to store data and perform actions. While this works well for small programs, it can quickly become difficult to manage as the program grows. This page introduces Object-Oriented Programming

Why Object-Oriented Programming? Read More »

Scroll to Top