You are required to create a C# Console application using Visual Studio with the following functional requirements:
Create 3 classes:
1. LocalPhone 2. NationalPhone 3. InternationalPhone
Each class will have a function to display the output.
Your Program should have the following functionalities:
• In the LocalPhone Class, create an attribute studentid to store your VUID and attribute name to store your name. Now, create a function getInput() in which you will take an input from the user for the attribute name that will take your name and for the attribute studentid, it will take your VUID. For example, if your ID is BS123456789 so your input should be BS123456789. Now create a function in the same class to display a local telephone number. Local telephone number will consist of first seven digits of your VUID. For example, if your ID is BS123456789 then display() function will print ‘1234567’ as your local phone number.
• Now write a child class NationalPhone that will inherit a LocalPhone class. And use a function to print the national phone number with city code.. For example, if your ID is BS123456789 then your city code should be 123 CONCATENATED with a local phone number. For example, in this case output will be: 123-1234567.
• In Next step, create another child class InternationalPhone,that will inherit “NationalPhone” class. . And use a function to print the complete phone number with country code For example, if your ID is BS123456789 so 89 will be considered as country code concatenated with national phone number. For example, if your ID is BS123456789, so your final output will be like +89-123-1234567. ‘89’ here is country code + is additionally added in the start, 123 is a city code and 1234567 is a local phone number.