Skip to main content

7.2: Report Heading – Header, Implementation & Client Files

7.2: Report Heading – Header, Implementation & Client Files

This programming challenge, 2 Report Heading, asks us to create a program that outputs the heading for a company report. We need to create a header, implementation and client file. If you’re not familiar with these three different files, check out my blog about programming challenge 7-1 Date. First, I created the header file, this is […]

7.1: Date – Class Constructors, Header Files & Default Parameters

7.1: Date – Class Constructors, Header Files & Default Parameters

Class constructors, header files and default parameters took me far to long to get the hang of. Header files, as you already know, are referenced using the “#include” at the beginning of programs. Header files end with a “.h”. Distinct from header files, source files for C++ end with “.cpp”. Sources files are compiled and […]

Base and Derived Classes in C++

Base and Derived Classes in C++

Base and derived classes are fundamental to object-oriented programming. Understanding class functionality is crucial, and the best way to learn is by doing. This program has two classes, Rectangle and Cube. Rectangle is the base class and Cube is the derived class. That means Cube contains all the members of the Rectangle class, allowing us […]