Chapter 17 Flashcards

1
Q

object-oriented language

A

a language that provides features, such as user-defined classes and method syntax, that facilitate object-oriented programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

object-oriented programming

A

a style of programming in which data and the operations that manipulate it are organized into classes and methods

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

method

A

a function that is defined inside a class definition and is invoked on instances of that class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

subject

A

the object a method is invoked on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

operator overloading

A

changing the behavior of an operator like + so it works with a user-defined type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

type-based dispatch

A

a programming pattern that checks the type of an operand and invokes different functions for different types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

polymorphic

A

pertaining to a function that can work with more than one type.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

information hiding

A

the principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly