MicroNugget: What is an Object Class in Python?

Опубликовано: 21 Август 2018
на канале: CBT Nuggets
3,162
67

Start learning cybersecurity with CBT Nuggets. https://courses.cbt.gg/security

In this video, Ben Finkel covers the root of object-oriented programming: the object. In Python, the object and the class are often used interchangeably, but they're not the same thing. Keeping these terms straight will make your programming more clear and effective.

Python is an object-oriented language — and the very first concept to talk about when learning object-oriented programming is the object. The object derives from the class.

Importantly, the object and class are different things. They're talked about together because of their relationship to one another, but they're not the same thing.

The class is a definition, the object is the actual thing that you work with inside the code.

You could think of the class like an architectural blueprint. The blueprint defines the house, but it's not the house — the house is the house. And the same blueprint could end up defining multiple houses with variations.

Instantiation is what happens after you assign variables and functions inside a class. By altering the state and behavior inside a class, you get different variations on the class' output: the object.

🤖 Download the Ultimate DevOps Cert Guide: https://blog.cbt.gg/i3mz

⬇️ 6-Week Study Plan: DevNet Associate: https://blog.cbt.gg/uagu


Start learning with CBT Nuggets:

• Python | https://courses.cbt.gg/036
• Intro to Programming and Development | https://courses.cbt.gg/zv4
• Java | https://courses.cbt.gg/rz3


Смотрите видео MicroNugget: What is an Object Class in Python? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь CBT Nuggets 21 Август 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,162 раз и оно понравилось 67 людям.