Chapter 17 Flashcards
object-oriented language
a language that provides features, such as user-defined classes and method syntax, 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.
subject
the object a method is invoked on.
operator overloading
changing the behavior of an operator like + so it works with a user-defined type.
type-based dispatch
a programming pattern that checks the type of an operand and invokes different functions for different types.
polymorphic
pertaining to a function that can work with more than one type.
information hiding
the principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes.