Русские видео

Сейчас в тренде

Иностранные видео




Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



Lesson-04 | Attribute __dict__ | [OOP in Python]

This is the lesson number 04 of the lesson series on Object Oriented Programming (OOP) in Python. It will be a complete course with the aim is to cover almost everything needed in Object Oriented Programming. In this lesson we will study about a special attribute names as _dict_ which is associated with each object we create from a class and with the class as well. It contains the information of different attributes of that object or class. It is a Dictionary with keys as the names of the different attributes and dictionary values as values of those attributes. This attribute can be very helpful for debugging purposes. We will also see other help statements for class and object. Link to complete playlist:    • Object-Oriented Programming in Python   Lesson Code: https://github.com/MAN1986/OOP-in-Pyt... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Review Questions of the Lesson 1. If we have a Point class for the points on XY plane such that the objects have two data attributes; x for x-coordinate and y for y-coordinate. A new attribute mag for the magnitude of the point (distance of point from origin) should be data attribute, method attribute or a method with property decorator? 2. When will you prefer to use dir on class/object and when will prefer help ? #OOP #ObjectOrientedProgramming #Python

Comments