Page 1 of 1

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
by answerhappygod
4 Write A Class Called Doctor The Doctor Class Will Have Four Data Members Name String Working Hours Int Yearso 1
4 Write A Class Called Doctor The Doctor Class Will Have Four Data Members Name String Working Hours Int Yearso 1 (32.39 KiB) Viewed 16 times
4 Write A Class Called Doctor The Doctor Class Will Have Four Data Members Name String Working Hours Int Yearso 2
4 Write A Class Called Doctor The Doctor Class Will Have Four Data Members Name String Working Hours Int Yearso 2 (32.39 KiB) Viewed 16 times
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