Object Oriented Programming - Class in a Separate Header File

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/9

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering C++ class separation into header files, implementation files, driver files, header guards, and the compilation flow.

Last updated 2:15 PM on 9/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

10 Terms

1
New cards

Header File (.h)

A file containing class definitions (interfaces) that allows the compiler to recognize classes when used across different files.

2
New cards

Source File (.cpp)

A file used for source-code implementations, such as class member function definitions and main or test programs.

3
New cards

Driver File

A program file containing a main() function used to test software and verify that classes work correctly.

4
New cards

Class Interface

A class definition listing only public member function prototypes in a header file, describing what services a class's clients can use without revealing how they are carried out.

5
New cards

Class Implementation

The definitions of member functions contained in a separate source file (.cpp) that conceal execution details from client code.

6
New cards

Binary Scope Resolution Operator (::)

An operator used in C++ source files to tie each member function implementation to its corresponding class definition.

7
New cards

Header Guards

Preprocessor directives (#ifndef, #define, #endif) used in header files to prevent multiple inclusions of the same class definition.

8
New cards

Object Code (.o / .obj)

The intermediate compiled code produced when an individual .cpp source file is compiled separately.

9
New cards

Linker

A compilation process component that combines all compiled object files into the final executable program.

10
New cards
<p>Compilation Flow with Header &amp; Source Files</p>

Compilation Flow with Header & Source Files

The process where header files are included by source files, each .cpp file is compiled separately into object code, and the linker combines all object files into the final executable.