...

/

Challenge 3: Implement a Banking Application Using Polymorphism

Challenge 3: Implement a Banking Application Using Polymorphism

In this challenge, you have to implement a basic banking application by implementing the Account class along with two derived classes, SavingsAccount and CheckingAccount.

Problem Statement

Write a code that has:

  • A base class named Account.

    • Inside it define:
      • A field, private double _balance
      • A protected property, Balance, to access the balance
      • public virtual bool Withdraw(double amount)
      • public virtual bool Deposit(double amount)
      • public virtual void PrintBalance()
  • Then, there are two derived classes

    • SavingsAccount ...