I am (still) working on a bank account project for school in which I instantiate and use different class objects - some of which are abstract class types.
The problem I am now having is deriving an abstract class from another abstract class such as this.
Thank you.
+----------------+
| bankAccount | Abstract class
+----------------+ contains fname, lname, bal
|
|
+----------------+
| checkingAccount| Abstract class
+----------------+ contains virtual function write check
|
|
+----------------+
| svcChgChecking | this is the class I need to instantiate
+----------------+
and during build the compiler complains of the object being an abstract class, - however it shouldn't be. I have no virtual functions in this derived class. I don't know what is wrong.
I have been programming this assignment non stop since last Thursday (probably have close to 40 hours on it), so forgive me if I seem vague on my responses. This assignment is due this Thursday and I am feeling pretty stressed out about it. Thanks.
The pv function in checkingAccount virtualvoid writeCheck() = 0;
takes 0 arguments. The function in serviceChargeChecking takes 1 argument void writeCheck(double chkAmt); so there is still no implementation for writeCheck() in class serviceChargeChecking.
Did you mean to declare virtualvoid writeCheck(double chkAmt) = 0; in class checkingAccount?