Java Games: Flashcards, matching, concentration, and word search.

C++ Lambert Ch 8

AB
structa record – organizes data elements that are of different types
classa description of the attributes and behavior of a set of computational objects
fieldsmembers – struct variables
anonymousstruct with no type name to represent the members of the struct
selectormeans of accessing members of a struct
data abstractionthe separation between the conceptual definition of a data structure and its eventual implementation
abstract data type (ADT)a form of abstraction that arises from the use of defined
abstract data typeADT
logical viewthe view an ADT gives data in terms of the operations on it and not the details of how the data are represented
encapsulatedwhen the user of an individual string cannot access its component parts except by invoking the ADT operations
objects – instancesa computational object bearing the attributes and behavior specified by a class
attributea property that a computational object models, such as the balance in a bank account
operationsactions that can be performed
formal specificationsdescribes the inputs, outputs, and any other assumptions about the data or the effects of an operation
class declaration section– the sections used to declare (name) symbolic constants, data types, variables, and subprograms that are necessary to the program
class implementation sectionusually a separate file containing the class functions
class memberthe data and functions belonging to a class
data membera data object declared within a class declaration module
member functionthe functions in a class
public membera data member or member function that is accessible to any program component that uses the class
private membera data member or member function that is accessible only within the scope of a class declaration
class constructora member function used to create and initialize an instance of a class
accessorsmember functions which return the values of attributes
modifiersmember functions which modify the value of attributes
default constructorshould provide reasonable initial values for the attributes of an object when the user does not specify them
initial value constructorwhen the user need to declare a variable with special attributes
copy constructor– is run whenever an object is passed by value as a parameter to a function
shallow copythe computer created constructor created when a copy constructor has not been declared
receiver objecta computational object to which a request is sent for a service
parameter objectthe data members of the object to be copied
const functionmethod of declaring an accessor functions so no changes occur
polymorphicwhen one operator symbol or function identifier has many meanings
overloading an operationthe process of using the same operator symbol or identifier to refer to many different functions
l-valuea computational object capable of being the target of an assignment statement
cascadecascade – more than two related assignment operations (a = b) =c
dereference operator* - returns the receiver object
specializeenhance a module with extra data or functions
servera computational object that provides a service to another computational object
clienta computational object that receives a service from another computational object
sendera computational object tat requests a service from another computational object
receivera computational object to which a request is sent for a service
base classthe class from which a derived class inherits attributes and behavior
behaviorthe set of actions that a class of objects supports
derived classa class that inherits attributes and behavior from other classes
free functionsnonmember functions for manipulating rational numbers and consist of several standard operators
access specifierdeclares whether the public members of the base class are public or private in the derived class
inheritance– the process by which a derived class can reuse attributes and behavior defined in a base class
class hierarchyshows the relationship between classes
protected membera data member or member function that is accessible only within the scope of a class declaration or within the class declaration of a derived class


The Summit Country Day School
Cincinnati, OH

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities