question archive 1) In OOP with Python, when a variable belongs to an object, we refer to it as a: variable attribute field object cannot contain variables
Subject:Computer SciencePrice:2.87 Bought7
1) In OOP with Python, when a variable belongs to an object, we refer to it as a:
variable |
||
attribute |
||
field |
||
object cannot contain variables. |
2) In OOP with Python, when a function belongs to an object, we refer to it as a:
function |
||
method |
||
procedure |
||
objects cannot contain functions. |
3) When defining a class’s attributes, what does the double underscore prefix mean?
the variable is static |
||
the variable is private and cannot be seen by outside code |
||
the variable is public and can be seen by outside code |
||
the variable cannot be changed |
Purchased 7 times