Task 3: Constant data can also be declared as a Java interface. Any class that implements such an interface can use the constants declared in it without any qualifications. Redesign the example application with the ConstantDataManager as an interface. Use below class diagram for help. Address save () | <> V Constant DataManager final ACCOUNT_DATA_FILE:String ="ACCOUNT.TXT" final VALID_MIN_LNAME_LEN: int 2 save () final ADDRESS_DATA_FILE:String="ADDRESS.TXT" final VALID_ST_LEN: int =2 final VALID_ZIP_CHARS: String = "0123456789" final DEFAULT_COUNTRY: String="USA" final CC_DATA_FILE:String="CC.TXT" final VALID_CC_CHARS: String = "0123456789" final MASTER: String ="MASTER" final VISA: String ="VISA" final DISCOVER: String ="DISCOVER" ↑ I | <> Credit Card save () <> Account save ()

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
Task 3: Constant data can also be declared as a Java interface. Any class that implements such an interface
can use the constants declared in it without any qualifications. Redesign the example application with the
ConstantDataManager as an interface. Use below class diagram for help.
Address
save ()
| <<uses>>
✓
ConstantDataManager
final ACCOUNT_DATA_FILE:String ="ACCOUNT.TXT"
final VALID_MIN_LNAME_LEN: int =2
save ()
final ADDRESS_DATA_FILE:String = "ADDRESS.TXT"
final VALID_ST_LEN: int =2
final VALID_ZIP_CHARS: String = "0123456789"
final DEFAULT_COUNTRY: String ="USA"
final CC_DATA_FILE:String = "CC.TXT"
final VALID_CC_CHARS: String = "0123456789"
final MASTER: String = "MASTER"
final VISA: String ="VISA"
final DISCOVER: String ="DISCOVER"
| <<uses>>
Credit Card
save ()
<<uses>>
Account
save ()
Transcribed Image Text:Task 3: Constant data can also be declared as a Java interface. Any class that implements such an interface can use the constants declared in it without any qualifications. Redesign the example application with the ConstantDataManager as an interface. Use below class diagram for help. Address save () | <<uses>> ✓ ConstantDataManager final ACCOUNT_DATA_FILE:String ="ACCOUNT.TXT" final VALID_MIN_LNAME_LEN: int =2 save () final ADDRESS_DATA_FILE:String = "ADDRESS.TXT" final VALID_ST_LEN: int =2 final VALID_ZIP_CHARS: String = "0123456789" final DEFAULT_COUNTRY: String ="USA" final CC_DATA_FILE:String = "CC.TXT" final VALID_CC_CHARS: String = "0123456789" final MASTER: String = "MASTER" final VISA: String ="VISA" final DISCOVER: String ="DISCOVER" | <<uses>> Credit Card save () <<uses>> Account save ()
Expert Solution
steps

Step by step

Solved in 4 steps with 2 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
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,