Chapter 15 Flashcards
object-oriented language
A language that provides features, such as user-defined classes and inheritance, that facilitate object-oriented programming.
object-oriented programming
A style of programming in which data and the operations that manipulate it are organized into classes and methods.
method
A function that is defined inside a class definition and is invoked on instances of that class. :override:: To replace a default. Examples include replacing a default parameter with a particular argument and replacing a default method by providing a new method with the same name.
initialization method
A special method that is invoked automatically when a new object is created and that initializes the object’s attributes.
operator overloading
Extending built-in operators ( +, -, *, >, <, etc.) so that they work with user-defined types.
dot product
An operation defined in linear algebra that multiplies two Points and yields a numeric value.
scalar multiplication
An operation defined in linear algebra that multiplies each of the coordinates of a Point by a numeric value.
polymorphic
A function that can operate on more than one type. If all the operations in a function can be applied to a type, then the function can be applied to a type.