C++ · Structs and classes

Lab: A bank account class

A bank account is the classic first class: one rule, never below zero, that the class itself must keep.