Getters and Setters
Вставка
- Опубліковано 28 вер 2024
- MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
View the complete course: ocw.mit.edu/6-0...
Instructor: Dr. Ana Bell
This in-class question explains how and why class attribute getters and setters are important in Python.
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu
does def refer to "define" ?
Yes. You use "def" to define a function (method).
@@mvisperas Thanks, that's what I though ;)
@@bluesdog88 That means you can no longer use def as a variable as it is now a reserved word. I normally use abc, then def as variables to create a small code to test an idea. Now I can no longer use def at least for python.
@@mvisperas yep just curious, it made the most sense, just thought i'd ask someone lol
I can't believe that she uses windows.
what's wrong with windows?
@@shashwattripathi759
It's lame
I can't believe you can't believe that.
Computer Scientists are actually focused on research and lecturing rather than obsessively installing repo's like Arch...
it’s just for presentation purposes, she very well could use linux on her workstation