Chapter 7 Questions Flashcards
(13 cards)
The usual syntax for using a class method is to provide a(n) __________ name, a dot (period), and a method name.
Object
A(n) _______________ is one concrete example of a class.
Object
A(n) ______ is a term that describes a group of objects with common properties.
Class
_______________ encapsulate data and methods.
Classes
A(n) ____ is just an abstract description of what an object will be like if any objects are ever actually instantiated.
Class
The feature of languages that allows the same word or symbol to be interpreted correctly in different situations based on the context is _______________.
Polymorphism
Polymorphism, which means “many forms,” describes a language’s ability to process objects differently depending on each object’s data _______________.
Type
A(n) ___________ of a class is an existing object of a class.
Instance
Each data variable that exists for every object is called a(n) ___________ variable.
Instance
With object-oriented languages, you think of the class name, data, and methods as a single ________ unit.
Encapsulated
By returning a(n) _ Employee object, you get to return several pieces of data in 1 package.
Encapsulated
A method that changes values within an abject is called a(n) _______________ method.
Mutator
Object-oriented programmers usually specify that their data fields will have _______ access—that is, the data cannot be accessed by any method that is not part of the class.
Private