CS304 Short Solved Paper
CS304 Short Solved Paper
Abstract A class that can only be used as a base class for some other class. A class is
class : abstract if it has at least one pure virtual function.
Access A way of controlling access to a specified member of a base class when it is used
declaration in a derived class.
:
Access A way of labelling members of a class to specify what access is permitted i.e
specifier : public, private, and 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++.
base A previously defined class whose public members can be inherited by another
class: : class. (Also called a super class.)
behavior A form of polymorphism, when multiple entities have the same generic interface.
sharing: : This is achieved by 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
reference: : address of the argument rather than its value. If it is modified, the new value will
also take effect outside of the procedure.
class An attribute whose value is common to a class of objects rather than a value
attribute: : peculiar to each instance of the class.
class An object representing a class, containing a list of its attributes and methods as
descriptor: well as the values of any class attributes.
:
class A diagram depicting classes, their internal structure and operations, and the
diagram: : fixed relationships between them.
class Defining a new derived class in terms of one or more base classes.
inheritance
::
container A class whose instances are container objects. Examples include sets, arrays,
class: : and stacks.
container An object that stores a collection of other objects and provides operations to
object: : access or iterate over them.
data The concept that some variables and/or operations in a module may not be
hiding: : 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
hiding: : that object and only 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.
instance: : A individual example of a class invoked via a class constructor.
instantiatio The process of creating (giving a value to) instances from classes.
n: :
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
constructor values of all the data 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.
message The philosophy that objects only interact by sending messages to each other
passing: : that request some 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.
operator A special case of polymorphism; attaching more than one meaning to the same
overloading operator symbol. ‘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.
parameteri A template for creating real classes that may differ in well-defined ways as
zed specified by parameters at the time of creation. The parameters are often data
classes: : 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.
private: : That part of an class, methods or attributes, which may not be accessed by other
classes, only by instances of that class.
public: : That part of an object, methods or attributes, which may be accessed by other
objects, and thus constitutes its interface.