21 - Python Object-Oriented Programming: Classes, Objects & More - Mr. Hollaway's Python Series

Опубликовано: 12 Май 2026
на канале: mr hollaway's code and tech tutorials
26
1

🌐 Master Object-Oriented Programming (OOP) in Python with Mr. Hollaway's twenty-first tutorial in the Foundational Python Skills Series. This comprehensive video introduces you to the fundamental concepts of OOP, focusing on classes and objects in Python. Understand the difference between an object and an instance, learn how to create a class, and grasp the significance of constructors, attributes, and instance methods. The tutorial also covers how to create an object from a class, and the distinction between class variables and instance variables. Perfect for beginners, this episode breaks down these OOP concepts into easy-to-understand segments, complete with practical examples. By the end of this tutorial, you'll have a solid understanding of how to implement OOP principles in Python to build more structured and efficient code. Dive into the world of Python OOP and start coding with clarity and sophistication!

00:00 Introduction
00:24 Classes intro
01:13 Ojbect-oriented programming
02:35 Making a class
03:24 Constructor - __init__() function
03:51 method
04:16 attributes
05:25 Creating an object or instance
06:01 Adding arguments
06:51 Using an instance method
07:52 Making another object/instance
10:11 Classes in a separate file
10:53 Importing the class
12:35 Class vs. instance
14:30 Instance variable
16:03 Class variable