4- Write a class called Doctor. The Doctor class will have four data members: name (String), working Hours (int), yearsO
Posted: Fri May 20, 2022 6:04 pm
4- Write a class called Doctor. The Doctor class will have four data members: name (String), working Hours (int), yearsOfService (int), and salary (Double). Create a class named TestDoctor to test your Doctor class. Your program should: Create Doctor object, enter names, working hours, years of service, and salaries, and then display the data for each doctor. Note: + denotes to public member and - denotes to private member. Display the information on windows application form. TestDoctor + main Doctor name: String + working Hours: Integer - yearsOfService: Integer - salary: Double