QUOTE(no2pencil @ 13 Mar, 2008 - 01:20 AM)


Also, can you please post what errors that you are getting...
thanks for you prompt reply, the error I am getting are as follows:
------ Build started: Project: BankAccount, Configuration: Debug Win32 ------
Compiling...
BankAccount.cpp
.\BankAccount.cpp(88) : error C2864: 'MoneyMarketAccount::WITHDRAWAL_FEE' : only static const integral data members can be initialized within a class
.\BankAccount.cpp(112) : error C2864: 'CDAccount::PENALTY' : only static const integral data members can be initialized within a class
.\BankAccount.cpp(275) : error C2144: syntax error : 'std::string' should be preceded by ')'
.\BankAccount.cpp(275) : error C2612: trailing 'type' illegal in base/member initializer list
.\BankAccount.cpp(275) : error C2512: 'BankAccount' : no appropriate default constructor available
.\BankAccount.cpp(275) : error C2082: redefinition of formal parameter 'name'
.\BankAccount.cpp(275) : error C2062: type 'double' unexpected
.\BankAccount.cpp(275) : error C2059: syntax error : ')'
.\BankAccount.cpp(276) : error C2143: syntax error : missing ';' before '{'
.\BankAccount.cpp(281) : error C2601: 'MoneyMarketAccount::withdraw' : local function definitions are illegal
.\BankAccount.cpp(301) : error C2601: 'MoneyMarketAccount::getNumWithdrawals' : local function definitions are illegal
.\BankAccount.cpp(311) : error C2275: 'std::string' : illegal use of this type as an expression
C:\Program Files\Microsoft Visual Studio 8\VC\include\xstring(2128) : see declaration of 'std::string'
.\BankAccount.cpp(311) : error C2146: syntax error : missing ')' before identifier 'name'
.\BankAccount.cpp(311) : error C2059: syntax error : ')'
.\BankAccount.cpp(312) : error C2143: syntax error : missing ';' before '{'
.\BankAccount.cpp(317) : error C2601: 'CDAccount::withdraw' : local function definitions are illegal
.\BankAccount.cpp(341) : error C2601: 'transfer' : local function definitions are illegal
.\BankAccount.cpp(368) : fatal error C1004: unexpected end-of-file found
Build log was saved at "file://c:\Users\John\Documents\Visual Studio 2005\Projects\BankAccount\Debug\BuildLog.htm"
BankAccount - 18 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========