Question

Which of the following methods is not part of the Button class? a) activate b) deactivate c) setLabel d) clicked

Solution

Verified

Step 1

1 of 2

Looking at the button.py\texttt{button.py} module, we see that besides the constructor, there are 4 methods:

clicked getLabel activate deactivate

Notice that though there is an accessor method getLabel\texttt{getLabel}, there is no mutator variable for the label\texttt{label} instance variable. I.e. there's no setLabel\texttt{setLabel} method.

Create an account to view solutions

By signing up, you accept Quizlet's Terms of Service and Privacy Policy
Continue with GoogleContinue with Facebook

Recommended textbook solutions

Computer Organization and Design MIPS Edition: The Hardware/Software Interface 5th Edition by David A. Patterson, John L. Hennessy

Computer Organization and Design MIPS Edition: The Hardware/Software Interface

5th EditionDavid A. Patterson, John L. Hennessy
220 solutions
Fundamentals of Database Systems 7th Edition by Ramez Elmasri, Shamkant B. Navathe

Fundamentals of Database Systems

7th EditionRamez Elmasri, Shamkant B. Navathe
687 solutions
Introduction to Algorithms 3rd Edition by Charles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen

Introduction to Algorithms

3rd EditionCharles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen
720 solutions

Related questions