CS304 Short Notes
CS304 Short Notes
CS304 Short Notes
Provided by VUAnswer.com
Abstract class A class that can only be used as a base class for some other class. A class is abstract if it has at least
: one pure virtual function.
Access control A C++ mechanism for prohibiting or granting access to individual members of a class. See public,
: private, protected, and visibility.
Access A way of controlling access to a specified member of a base class when it is used in a derived class.
declaration :
Access A way of labelling members of a class to specify what access is permitted i.e public, private, and
specifier : protected.
accessor : : A public member subprogram that provides query access to a private data member.
agent: : An object that can both initiate behavior in other objects, as well as be operated upon by other
objects.
Allocation : The process of giving memory space to an object. See dynamic storage,static storage, and
deallocation.
ANSI : Acronym for American National Standards Institute, a standards body currently standardizing C++.
array section: A subobject that is an array and is not a defined type component.
:
base class: : A previously defined class whose public members can be inherited by another class. (Also called a
super class.)
behavior A form of polymorphism, when multiple entities have the same generic interface. This is achieved by
sharing: : inheritance or operator overloading.
bintree: : A tree structure where each node has two child nodes.
call-by- A language mechanism that supplies an argument to a procedure by passing the address of the
reference: : argument rather than its value. If it is modified, the new value will also take effect outside of the
procedure.
call-by-value: : A language mechanism that supplies an argument to a procedure by passing a copy of its data value.
If it is modified, the new value will not take effect outside of the procedure that modifies it.
class attribute: An attribute whose value is common to a class of objects rather than a value peculiar to each instance
: of the class.
class An object representing a class, containing a list of its attributes and methods as well as the values of
descriptor: : any class attributes.
class diagram: A diagram depicting classes, their internal structure and operations, and the fixed relationships
: between them.
class Defining a new derived class in terms of one or more base classes.
inheritance: :
class: : An abstraction of an object that specifies the static and behavioral characteristics of it, including their
public and private nature. A class is an ADT with a constructor template from which object instances
are created.
constructor: : An operation, by a class member function, that initializes a newly created instance of a class.
container A class whose instances are container objects. Examples include sets, arrays, and stacks.
class: :
container An object that stores a collection of other objects and provides operations to access or iterate over
object: : them.
data hiding: : The concept that some variables and/or operations in a module may not be accessible to a user of that
module; a key element of data abstraction.
information The principle that the state and implementation of an object should be private to that object and only
hiding: : accessible via its public interface.
inheritance: : The relationship between classes whereby one class inherits part or all of the public description of
another base class, and instances inherit all the properties and methods of the classes which they
contain.
interaction A diagram that shows the flow of requests, or messages between objects.
diagram: :
interface: : The set of all signatures (public methods) defined for an object.
intrinsic A class member function with the same name as the class which receives initial values of all the data
constructor: : members as arguments.
Is-A: : A relationship in which the derived class is a variation of the base class.
linked list: : A data structure in which each element identifies its predecessor and/or successor by some form of
pointer.
member data: Variables declared as components of a defined type and encapsulated in a class.
:
message The philosophy that objects only interact by sending messages to each other that request some
passing: : operations to be performed.
message: : A request, from another object, for an object to carry out one of its operations.
method: : A class member function encapsulated with its class data members.
object : : A concept, or thing with crisp boundaries and meanings for the problem at hand; an instance of a
class.
object A graphical representation of an object model showing relationships, attributes, and operations.
diagram: :
object- A software development strategy that organizes software as a collection of objects that contain both
oriented (OO): data structure and behavior.
:
object- Object-oriented programs are object-based, class-based, support inheritance between classes and base
oriented classes and allow objects to send and receive messages.
programming
(OOP) :
operation: : Manipulation of an object’s data by its member function when it receives a request.
operator A special case of polymorphism; attaching more than one meaning to the same operator symbol.
overloading: : ‘Overloading’ is also sometimes used to indicate using the same name for different objects.
overloading: : Using the same name for multiple functions or operators in a single scope.
overriding: : The ability to change the definition of an inherited method or attribute in a subclass.
parameterized A template for creating real classes that may differ in well-defined ways as specified by parameters
classes: : at the time of creation. The parameters are often data types or classes, but may include other
attributes, such as the size of a collection. (Also called generic classes.)
pointer: : A single data object which stands such as an array, or defined type.
polymorphism: The ability of an function/operator, with one name, to refer to arguments, or return types, of different
: classes at run time.
private: : That part of an class, methods or attributes, which may not be accessed by other classes, only by
instances of that class.
protected: : (Referring to an attribute or operation of a class in C++) accessible by methods of any descendent of
the current class.
public: : That part of an object, methods or attributes, which may be accessed by other objects, and thus
constitutes its interface.