Q.Write a class Local Phone that contains an attribute phone to store local phone number. The class
Fantastic news! We've Found the answer you've been seeking!
Question:
Q.Write a class Local Phone that contains an attribute phone to store local phone number. The class contains member functions to input and display phone number. Write a child class NatPhone for national phone number that inherits LocPhone class. It additionally contains an attribute to store city code. It also contains member functions to input and display the city code. Write another class intPhone for international phone number that inherits NatPhone Class. It additionally contains an attribute to store country code. It also contains member functions to input and show the country code.
Related Book For
Posted Date: