From the course: Object-Oriented Programming with C++

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Challenge: Bank account with audit system

Challenge: Bank account with audit system - C++ Tutorial

From the course: Object-Oriented Programming with C++

Challenge: Bank account with audit system

(soft upbeat music) - [Instructor] In this module, you've learned the importance of data hiding, proper ways to access member variables, const correctness, friend classes, and more. Now it's time to put your skills to the test. You will find the starter project for this coding challenge in the course's GitHub repository under chapter two 02_06 and folder. The project consists of two classes, bank account and auditor. The main function is in the main CPP file as usual. The starter project contains a bank account class with standard banking operations and an auditor class that verifies account integrity. The code won't compile because it's missing several key concepts we covered. Your task is to identify and fix the problems that prevent the code from compiling. Here are some hints. The display balance const method needs to track the number of times the balance was checked. Ensure const correctness by applying the mutable keyword only when it is truly needed. Establish the missing…

Contents