How to create these two functions with their respective variables?

Pages: 12
Having a setter function is nice too :
1
2
3
4
5
6
7
8
9
double getBalance()
 {
	return balance;
 }

void setBalance(double val)
 {
     balance = val;
 }


This is how it is done. Just mimic what I do to finish the rest.
Last edited on
Topic archived. No new replies allowed.
Pages: 12