
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 9-lesson course built from Saumya Singh's 1h 17m of YouTube video. 1 day at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Saumya Singh on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand what Object-Oriented Programming is, why it is used, and the core difference between a class (blueprint) and an object (real entity) with real-world analogies like vehicles and students.
Learn the syntax for defining a Python class, adding attributes (variables), instantiating objects, and accessing attribute values using dot notation.
Master the __init__ method for automatic initialization of object attributes, understand the role of 'self' as the current object instance, and learn to pass custom data during object creation.
Differentiate between class-level attributes (shared by all objects) and instance attributes (unique to each object), and learn how to override default values on specific objects.
Define methods (functions inside classes), solve practice problems creating classes with constructors and methods, and debug common errors like missing 'self' and uninitialized local variables.
Learn to create static methods using the @staticmethod decorator to write utility functions inside a class that do not require the 'self' parameter.
Understand Abstraction (hiding complexity, showing essentials) and Encapsulation (wrapping data and methods into a single unit/class, protecting data with private variables) with real-world examples.
Learn how Inheritance allows a child class to acquire properties and methods from a parent class, enabling code reuse and hierarchical relationships (e.g., Vehicle -> Car/Bike).
Understand Polymorphism where the same method name behaves differently across classes (e.g., Animal sound, Shape area), allowing flexible and interchangeable object usage.