- Q5 Find And Correct Any Four 04 Errors From The Following Vb Net Code Code 1 Mustinherit Employee 2 Public Current 1 (65.12 KiB) Viewed 24 times
Q5. Find and correct any four (04) errors from the following VB.Net Code. CODE 1. MustInherit Employee 2. Public Current
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q5. Find and correct any four (04) errors from the following VB.Net Code. CODE 1. MustInherit Employee 2. Public Current
Q5. Find and correct any four (04) errors from the following VB.Net Code. CODE 1. MustInherit Employee 2. Public Current Salary As Double 3. MustOverride Function CalCulateS() As Double 4. End Function 5. End Class 6. 7. Class Part Time 8. Inhertis Employee 9. Public working Hr As Double 10. Public Overrides Function CalCulateS(Byval a As Double , ByVal b As Double) As Double 11. Return (CurrentSalary + (workingHr* 100)) 12. End Function 13. End Class 14. 18 15. Public Class Form1 16. Private Sub Button1_Click(...) Handles Button1. Click 17. Dim Obj As Employee() Obj.CurrentSalary = InputBox("Enter your current salary?") 19. Obj.working Hr = InputBox("Enter your working hours?") 20. MessageBox.Show("Your bonus is : " & Obj.CalculateSO) 21. End Sub 22. End Class ERRORS AND CORRECTION Line Error (Why it is an errorCorrection (Write the correct line of code) Number