Question: .Lab 8: Design a class Phone with one data member as long phoneNumber. Add constructors, get/set methods to class Phone. Then design a class InternationalPhone
.Lab 8: Design a class Phone with one data member as long phoneNumber. Add constructors, get/set methods to class Phone. Then design a class InternationalPhone as subclass of class Phone, with one extra data member as int countryCode. Add constructors, get/set methods to class InternationalPhone. Write a main program to test these two classes. .Homework 8: Add method print to class Phone and internal InternationalPhone to display the information. Write a main program to test
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
