Q1) Given the following diagram, implement all the Classes and write a client code to test your application. Emlpoyee + name +Ssn +Calculate Earning() Salaried Employee Commission Employee -weeklySalaryValue +Calculate Earning() -grossSales value -commisionRate Value + Calculate Earning() a. Class Employee: Calculate Earning(): return double and it is must override method. b. Class Salaried Employee: Calculate Earning(): return the weekly salary employee c. Class Commission Employee: Calculate Earning(): return the commission rate multiply by gross sales values. d. Write appropriate properties for each class. e. The client program (Main()) should be test the application by creating 1 Salaried employee object and display his salary. In addition to create 1 commission employee obiect and display his salary.
Q1) Given the following diagram, implement all the Classes and write a client code to test your application. Emlpoyee + name +Ssn +Calculate Earning() Salaried Employee Commission Employee -weeklySalaryValue +Calculate Earning() -grossSales value -commisionRate Value + Calculate Earning() a. Class Employee: Calculate Earning(): return double and it is must override method. b. Class Salaried Employee: Calculate Earning(): return the weekly salary employee c. Class Commission Employee: Calculate Earning(): return the commission rate multiply by gross sales values. d. Write appropriate properties for each class. e. The client program (Main()) should be test the application by creating 1 Salaried employee object and display his salary. In addition to create 1 commission employee obiect and display his salary.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 9RQ
Related questions
Question
Can you help me solve it in Visual Basic language?in consol VB
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,