Question: The code below defines a class called LB _ phone _ number, for representing a phone number in the 5 6 2 ( Long Beach

The code below defines a class called LB_phone_number, for representing a phone number in the 562(Long Beach) area code. Several methods are missing code to finish their logic.
Complete the code above by filling in the bodies of the update_number and print_phone_num methods:
update_number : change the phone number (not the area code) to match the parameter to the method.
print_phone_num : print the phone number - formatted as "XXX-YYY-YYYY", where XXX is the area code, and YYY-YYYY is the phone number itself.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!