Ch. 13 Introduction to Classes Flashcards
The two common programming methods in practice today are _______ and _______.
Procedural programming, Object oriented programming
________ programming is centered around functions or procedures.
procedural
_________ programming is centered around objects.
Object oriented
_______ is an objects ability to contain and manipulate its own data.
encapsulation
In C++ the _______ is the construct used to create objects.
class
A class is very similar to a(n) ________.
structure
A(n) ________ is a key word inside a class declaration that establishes a member’s accessibility.
access specifier
The default access specification of class members is ________.
private
The default access specification of a struct in C++ is ________.
public
Defining a class object is often called the _________ of a class.
instantiation
Members of a class object may be accessed through a pointer to the object by using the ______ operator.
pointer
If you were writing the declaration of a class named Canine, what would you name the file it was stored in?
Canine.h
If you were writing the external definitions of the Canine class’s member functions, you would save them in a file named ______.
Canine.cpp
When a member functions body is written inside a class declaration, the function is ________.
inline
A ________ is automatically called when an object is created.
constructor
A _______ is a member function with the same name as the class.
constructor
________ are useful for performing initialization or setup routines in a class object.
constructors
Constructors cannot have a ________ type.
return