Sergeus / AcmeTelecomSoftEngCW

Software Engineering for Industry Coursework 2 - Acme Telecom
0 stars 0 forks source link

Phone Number Class #8

Open tumblerer opened 11 years ago

tumblerer commented 11 years ago

Currently there are a crapload of strings everywhere that are phone numbers, the values of which are often matched against each other. Creating a phone number class could make mistakes less likely, expand potential future functionality (encapsulating region and ensuring number validity, as referenced in #6 ).

Sergeus commented 11 years ago

For compatibility with the existing code base should the PhoneNumber class have a constructor that takes the original phone number strings and parses them? (That may be quite complicated though, depending on how standardized phone numbers are worldwide/within the project.)

EDIT: Ignore me, you've already done this.