IT 117: Intermediate Scripting
Class 17 Ungraded Quiz
-
To create a new kind of object, what must you define?
-
What do you call the special method that is used to create an object?
-
In Python what must the special method used to create an object be named?
-
What do you call an object that is created from a class?
-
Every method in a class must take a certain parameter. What is this parameter?
-
What two kinds of things do you define inside a class?
-
What do you call the style of programming that uses objects?
-
If I were writing a method in a class and wanted to set the value of the
variable inside the class named count to zero,
what Python statement would I write?
-
If I had a variable named loan_1 that pointed
to an object which contained the variable principle
and I wanted to set the value of this variable to 1000,
what Python statement would I write?
-
Do constructors have a
return
statement?