bank class eas230

bank class eas230 - if (howMuch > balance ) {...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include "bankClass.h" bankClass::bankClass( double startingFunds ) { balance = startingFunds; } void bankClass::addFunds( double howMuch ) { balance = balance + howMuch; } void bankClass::subtractFunds( double howMuch ) {
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: if (howMuch > balance ) { howMuch = balance; } balance = balance - howMuch; } // end function double bankClass::getBalance( ) { return balance; };...
View Full Document

Ask a homework question - tutors are online