MicroNugget: What is an Object Class in Python?

Published: 21 August 2018
on channel: 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


Watch video MicroNugget: What is an Object Class in Python? online without registration, duration hours minute second in high quality. This video was added by user CBT Nuggets 21 August 2018, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,162 once and liked it 67 people.