© 2026 Hashnode
A previous post explored how abstract classes serve as blueprints for creating cohesive class hierarchies. We discussed how inheritance allows subclasses (like Circle and Rectangle) to fulfil a "design contract" defined by a parent Shape class. Howev...

1. Encapsulation Encapsulation = data hiding + controlled access. What it solves Without encapsulation, anyone can change your internal values → breaks logic, compromises security, causes unpredictable behavior. How Java enforces it Make variables p...

Last week, I learnt about functions, loops (for and while), conditional statements, and other Python basics. This week, we stepped up a notch by diving into Object-Oriented Programming (OOP) — one of the main building blocks of Python. Understanding ...
