Python Classes and Objects| Python Tutorial -12
Python Classes/Objects
Python is an object oriented programming language.
Almost everything in Python is an object, with its properties and methods.
A Class is like an object constructor, or a "blueprint" for creating objects.
The __init__() Function
The examples above are classes and objects in their simplest form, and are not really useful in real life applications.
To understand the meaning of classes we have to understand the built-in __init__() function.
All classes have a function called __init__(), which is always executed when the class is being initiated.
Видео Python Classes and Objects| Python Tutorial -12 автора Кодовый революционер с Python
Видео Python Classes and Objects| Python Tutorial -12 автора Кодовый революционер с Python
Информация
3 декабря 2023 г. 19:53:39
00:12:16
Похожие видео