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
![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 object and display his salary.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbc6db6b9-d0e5-4da9-8760-56654397d54a%2Fab49cc4e-5931-4671-a8b5-4e25914963d0%2F638t1ib_processed.jpeg&w=3840&q=75)
Transcribed Image Text: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 object and display his salary.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
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#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![C++ Programming: From Problem Analysis to Program…](https://www.bartleby.com/isbn_cover_images/9781337102087/9781337102087_smallCoverImage.gif)
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Systems Architecture](https://www.bartleby.com/isbn_cover_images/9781305080195/9781305080195_smallCoverImage.gif)
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning