Q2: Any phone number such as (222) 767-1900 having three parts area code (222), exchange (767) and number (1900). Create a class PhoneNumber that is used to store a phone number as three separate...

i need the answer quicklyQ2: Any phone number such as (222) 767-1900 having three parts area code (222), exchange (767) and number<br>(1900). Create a class PhoneNumber that is used to store a phone number as three separate parts. The class<br>should contain the following:<br>1- A constructor to initialize the data members.<br>2- Read Data function to set a phone number as three parts.<br>3- Get Data function to return the phone number as three parts.<br>4- Print as a friend function to display the phone number using the Get Data function.<br>Write a C++ program to test the created class.<br>

Extracted text: Q2: Any phone number such as (222) 767-1900 having three parts area code (222), exchange (767) and number (1900). Create a class PhoneNumber that is used to store a phone number as three separate parts. The class should contain the following: 1- A constructor to initialize the data members. 2- Read Data function to set a phone number as three parts. 3- Get Data function to return the phone number as three parts. 4- Print as a friend function to display the phone number using the Get Data function. Write a C++ program to test the created class.

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here