Podcast
Questions and Answers
- What are the two parts that compose an Abstract Data Type (ADT)?
- What are the two parts that compose an Abstract Data Type (ADT)?
The two parts that compose an ADT are the types of information, called attributes, that we need to maintain about the things, and the operations that we are allowed to use to access or modify that information.
- In a python class, what names do we call each of the parts mentioned in the previous question?
- In a python class, what names do we call each of the parts mentioned in the previous question?
In a python class, we call the types of information (attributes) instance variables, and the operations methods.
- List two instance variables of the Turtle object.
- List two instance variables of the Turtle object.
Two instance variables of the Turtle object are position and heading.
- List two methods of the Turtle object.
- List two methods of the Turtle object.
Signup and view all the answers
- What does an import statement do?
- What does an import statement do?
Signup and view all the answers