Karteikarten
Programming Fundamentals Flashcards 2
Karten in diesem Stapel (21)
- 1A programming pattern that checks the type of an operand and invokes different functions for different types.type-based dispatch:
- 2Pertaining to a function that can work with more than one type.polymorphic:
- 3The principle that the interface provided by an object should not depend on its implementation, in particular the representation of its attributes.information hiding:
- 4To represent one set of values using another set of values by constructing a mapping between them.encode:
- 5An attribute associated with a class object. Class attributes are defined inside a class definition but outside any method.class attribute:
- 6An attribute associated with an instance of a class.instance attribute:
- 7A method or function that provides a different interface to another function without doing much computation.veneer:
- 8The ability to define a new class that is a modified version of a previously defined class.inheritance:
- 9: The class from which a child class inherits.parent class
- 10A new class created by inheriting from an existing class; also called a “subclass”.child class:
- 11A relationship between a child class and its parent class.IS-A relationship:
- 12A relationship between two classes where instances of one class contain references to instances of the other.HAS-A relationship:
- 13A relationship between two classes where instances of one class use instances of the other class, but do not store them as attributes.dependency:
- 14A diagram that shows the classes in a program and the relationships between them.class diagram:
- 15A notation in a class diagram that shows, for a HAS-A relationship, how many references there are to instances of another class.multiplicity:
- 16A program development plan that involves a prototype using global variables and a final version that makes the global variables into instance attributes.data encapsulation:
- 17An expression that has one of two values, depending on a condition.conditional expression:
- 18An expression with a for loop in square brackets that yields a new list.list comprehension:
- 19An expression with a for loop in parentheses that yields a generator object.generator expression:
- 20A mathematical entity that represents a mapping between the elements of a set and the number of times they appear.multiset:
- 21A function, usually passed as a parameter, used to create objects.factory:
Informationen
- Beschreibung
- Karteikarten am Programming Fundamentals Flashcards 2, erstellt von Lilith Rayne-Martin am 15/10/2018.
- Erstellt von
- Lilith Rayne-Martin · Okt 2018
- Aktualisiert
- 15 Okt 2018
- Aufrufe
- 0
- Bewertung