Question: A: You are tasked with creating a class Phone NumberType with the following three data members: Area-Code, Prefix, Post. Define the class PhoneNumberType with all

 A: You are tasked with creating a class Phone NumberType with

A: You are tasked with creating a class Phone NumberType with the following three data members: Area-Code, Prefix, Post. Define the class PhoneNumberType with all its data and function members, including a printPhone() member function, a default constructor, which sets the phone number to 713 313 7000 and a parameterized constructor which takes 3 arguments and initializes an object of type Phone NumberType. B: Write the code corresponding to Phone NumberType.h which defines the class PhoneNumberType, Phone NumberType.cpp which implements the class and PhoneNumberDriver.cpp which uses the class to define a phone number with the following values: CSdeptPhone: 713-313-7991 and prints its value. C: Extends the class Phone Number to define an InternationalPhoneNumberType, which consists of a Phone Number, preceded by a country code. The default constructor should set the country code to "001" D: Design a class ContactType that defines a contact as a person name (First, Last) and a phone number. Define its data and function members and a default constructor) and define the corresponding code that sets the default constructor to "John Doe" as the first and last name A: You are tasked with creating a class Phone NumberType with the following three data members: Area-Code, Prefix, Post. Define the class PhoneNumberType with all its data and function members, including a printPhone() member function, a default constructor, which sets the phone number to 713 313 7000 and a parameterized constructor which takes 3 arguments and initializes an object of type Phone NumberType. B: Write the code corresponding to Phone NumberType.h which defines the class PhoneNumberType, Phone NumberType.cpp which implements the class and PhoneNumberDriver.cpp which uses the class to define a phone number with the following values: CSdeptPhone: 713-313-7991 and prints its value. C: Extends the class Phone Number to define an InternationalPhoneNumberType, which consists of a Phone Number, preceded by a country code. The default constructor should set the country code to "001" D: Design a class ContactType that defines a contact as a person name (First, Last) and a phone number. Define its data and function members and a default constructor) and define the corresponding code that sets the default constructor to "John Doe" as the first and last name

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!