CS202   3- ‹#›
n
n#include "account.h"
naccount::account() : balance(0) {
n  strncpy(name, "none", 32);
n  name[31] = '\0';
n  cout <<"account constructor called" <<endl;
n}
nchecking::checking() : charges(5) {
n  cout <<"checking constructor called" <<endl;
n}
nsavings::savings() : interest(0) {
n  cout <<"savings constructor called" <<endl;
n}
nAfter the client saying: checking c;
n  savings s;
n
naccount constructor called
nchecking constructor called
naccount constructor called
nsavings constructor called
n
n
Constructors - Page 2 of 2