- 10.1: New objects are created by invoking a constructor.
- 10.2: Functions that live in objects are called instance variables
- 10.3: The first parameter of a Python method definition is called this.
- 10.4: An object may have only one instance variable.
- 10.5: In data processing, a collection of information about a person or t...
- 10.6: In a Python class, the constructor is called __ ini t __ .
- 10.7: A docstring is the same thing as a comment.
- 10.8: Instance variables go away once a method terminates.
- 10.9: Method names should always begin with one or two underscores.
- 10.10: It is considered bad style to directly access an instance variable ...
- 10.11: Implement a class to represent a playing card. Your class should ha...
- 10.12: Extend your card class from the previous problem with a draw(self, ...
- 10.13: Here is a simple class that draws a (grim) face in a graphics windo...
- 10.14: Modify the Face class from the previous problem to include a move m...
- 10.15: Modify the cannonball animation so that the input dialog window sta...
- 10.16: Advanced: Add a Target class to the cannonball animation. A target ...
- 10.17: Redo the regression problem from Chapter 8 (Programming Exercise 13...
Solutions for Chapter 10: Defining Classes
Full solutions for Python Programming: An Introduction to Computer Science | 3rd Edition
Adiabatic temperature change
Cooling or warming of air caused when air is allowed to expand or is compressed, not because heat is added or subtracted.
A poorly drained area on a floodplain that results when natural levees are present.
A sandbar that completely crosses a bay, sealing it off from the open ocean.
Bowen’s reaction series
A concept proposed by N. L. Bowen that illustrates the relationships between magma and the minerals crystallizing from it during the formation of igneous rocks.
Moist air with a lapse rate between the dry and wet adiabatic rates.
A boundary in which two plates move together, causing one of the slabs of lithosphere to be consumed into the mantle as it descends beneath on an overriding plate.
Coriolis force (effect)
The deflective force of Earth’s rotation on all free-moving objects, including the atmosphere and oceans. Deflection is to the right in the Northern Hemisphere and to the left in the Southern Hemisphere.
A type of unconformity in which the beds above and below are parallel.
Flows of basaltic lava that issue from numerous cracks or fissures and commonly cover extensive areas to thicknesses of hundreds of meters.
The remains or traces of organisms preserved from the geologic past.
A fossil that is associated with a particular span of geologic time.
Magma that reaches Earth’s surface.
A sequence of stars on the Hertzsprung-Russell diagram, containing the majority of stars, that runs diagonally from the upper left to the lower right.
The boundary between the mesosphere and the thermosphere.
The shape of these dunes resembles barchans, except their tips point into the wind; they often form along coasts that have strong onshore winds, abundant sand, and vegetation that partly covers the sand.
A concentration of material above the solar surface that appears as a bright archlike structure.
A highly heated mixture, largely of ash and pumice fragments, traveling down the flanks of a volcano or along the surface of the ground.
Sediments deposited by glacial meltwater.
Unsorted sediment deposited directly by a glacier.
A streamlined pyroclastic fragment ejected from a volcano while molten.