Note that classes bankAccount and checkingAccount are abstract.  (What does that mean?) The other accounts are not abstract. bankAccount: Every bank account has an account number, the name of the owner, and a balance.  Some operations common to all types of accounts are retrieve account owner's name, account number, and account balance; make deposits; withdraw money, and create monthly statement. Some of these will be pure virtual. (What does this mean?) checkingAccount: A checking account is a bank account. Therefore, it inherits all the properties of a bank account. Because one of the objectives to a checking account is to write checks, include a pure virtual function writeCheck to write a check. serviceChargeChecking: A service charge checking account is a checking account. Therefore, it inherits all the properties of a checking account.  For simplicity, assume this type of account does not pay any interest, allows the account holder to write a limited number of checks each month, and does not require a minimum balance.  Include appropriate named constants, instance variables, and functions in this class. noServiceChargeChecking: A checking account with no monthly service charge is a checking account. Therefore, it inherits all the properties of a checking account. Furthermore, this type of account pays interest, allows the account holder to write checks, and requires a minimum balance. highInterestChecking: A checking account with high interest is a checking account with no monthly service charge. Therefore, it inherits all the properties of a no service charge checking account.   Furthermore, this type of account pays higher interest and requires a higher minimum balance than the no service charge checking account. Lots to think about above... Why are pure virtual functions and abstract classes used here? What are pure virtual functions and abstract classes used here? How is a "pure virtual function" different from a plain "virtual function"? What might partial definitions of the following look like, and why? bankAccount and checkingAccount serviceChargeChecking, noServiceChargeChecking and highInterestCheckin

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Note that classes bankAccount and checkingAccount are abstract.  (What does that mean?) The other accounts are not abstract.

bankAccount: Every bank account has an account number, the name of the owner, and a balance.  Some operations common to all types of accounts are retrieve account owner's name, account number, and account balance; make deposits; withdraw money, and create monthly statement. Some of these will be pure virtual. (What does this mean?)

checkingAccount: A checking account is a bank account. Therefore, it inherits all the properties of a bank account. Because one of the objectives to a checking account is to write checks, include a pure virtual function writeCheck to write a check.

serviceChargeChecking: A service charge checking account is a checking account. Therefore, it inherits all the properties of a checking account.  For simplicity, assume this type of account does not pay any interest, allows the account holder to write a limited number of checks each month, and does not require a minimum balance.  Include appropriate named constants, instance variables, and functions in this class.

noServiceChargeChecking: A checking account with no monthly service charge is a checking account. Therefore, it inherits all the properties of a checking account. Furthermore, this type of account pays interest, allows the account holder to write checks, and requires a minimum balance.

highInterestChecking: A checking account with high interest is a checking account with no monthly service charge. Therefore, it inherits all the properties of a no service charge checking account.   Furthermore, this type of account pays higher interest and requires a higher minimum balance than the no service charge checking account.

Lots to think about above...

  • Why are pure virtual functions and abstract classes used here?
  • What are pure virtual functions and abstract classes used here?
  • How is a "pure virtual function" different from a plain "virtual function"?
  • What might partial definitions of the following look like, and why?
    • bankAccount and checkingAccount
    • serviceChargeChecking, noServiceChargeChecking and highInterestChecking
This image illustrates a hierarchical diagram that outlines a classification structure for different types of bank accounts. 

At the top of the hierarchy is the **bankAccount** node, depicted in yellow, which represents the general category under which all types of accounts fall.

From the **bankAccount** node, there are three branches leading to the following categories, each represented in purple:

1. **checkingAccount**
2. **certificateOfDeposit**
3. **savingsAccount**

Under the **checkingAccount** category, there are further subdivisions indicated by two light green nodes:

- **serviceChargeChecking**
- **noServiceChargeChecking**

Additionally, the **noServiceChargeChecking** category has a subtier represented by a dark green node:

- **highInterestChecking**

Similarly, the **savingsAccount** category encompasses one sub-category, also depicted in dark green:

- **highInterestSavings**

This diagram effectively showcases the relationship and hierarchy among various bank account types, from general to more specific classifications.
Transcribed Image Text:This image illustrates a hierarchical diagram that outlines a classification structure for different types of bank accounts. At the top of the hierarchy is the **bankAccount** node, depicted in yellow, which represents the general category under which all types of accounts fall. From the **bankAccount** node, there are three branches leading to the following categories, each represented in purple: 1. **checkingAccount** 2. **certificateOfDeposit** 3. **savingsAccount** Under the **checkingAccount** category, there are further subdivisions indicated by two light green nodes: - **serviceChargeChecking** - **noServiceChargeChecking** Additionally, the **noServiceChargeChecking** category has a subtier represented by a dark green node: - **highInterestChecking** Similarly, the **savingsAccount** category encompasses one sub-category, also depicted in dark green: - **highInterestSavings** This diagram effectively showcases the relationship and hierarchy among various bank account types, from general to more specific classifications.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education