The program calls for an abstract base class (used in two additional functions). No problems here.
The final part is to create a function that accepts the base class as a parameter: static void getStats() that accepts a parameter of type Account (see below). It is to display the data from Inquiry.
I can't seem to find any documentation on how to pass an abstract type as a parameter. And then I have to figure out which account I'm passing to get the right inquiry results.
Point me in the right direction, either a quick piece of code or a good literature source.
Thanks
D
The final part is to create a function that accepts the base class as a parameter: static void getStats() that accepts a parameter of type Account (see below). It is to display the data from Inquiry.
Code:
abstract class Account
{
...
public virtual double Inquiry()
{
...
}
}
class checkingAccount : Account
{
...
}
class savingsAccount : Account
{
...
}
Point me in the right direction, either a quick piece of code or a good literature source.
Thanks
D
Comment