Question: In c + + Create a basic class called Phone The class must have the following attributes 3 integers Area _ code, exchange & number
In c Create a basic class called Phone
The class must have the following attributes
integers Areacode, exchange & number
boolean unlisted
You will have two constructors for this class one parameterized and the nonparameterized constructor that sets all values to or false
make sure the AreaCode and Exchange are between and
make sure that the number is between and
There must be the following behaviors
setPhone that has all values passed
pntPhone That would display the number in the format
Given the Areacode exchange number unlisted true
is unlisted
Given the Areacode exchange number unlisted false
is listed
Have the object overloaded to do the same as pntPhone above
dial the prints to the screen the number only such as
unlist that will make the number unlisted
list that will make the number listed
Add to the Phone class above the pointer attributes to be able to dynamically allocate the phone records and store them in a linked list
It is okay for the attributes to be publicly accessible for this lab.
You will want to interactively enter the values. Stop adding to the list when the area code of the phone number is
After the stop entry of has been entered print the list in order of entry
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
