My boss is doing a fun little VB quiz with 3 questions to all of his C# programmer teams and the winner gets lunch on him. :) I would love to have a steak lunch today so any assistance would be appriciated.
He has given us some code and wants us to find the errors I will post below what I have and what I believe is wrong if you could verrify that would be great
Public Class hello
Function Hi() As String
' I cant find anything wrong with this code other than the fact that there is no imput for the
' function to access i.e. button press
MustOverride Function Hi() As String
' In this code I have found 2 errors
' error 1 the class hello2 should be declared mustinherit because it contains methods mustoverride
' error 2 shouldent Endfunction be mustoverride end function or am I wrong
MustInherit Function Hi() As String
Overrides Function Hi() As String
Return "Good Day"
'' should the MustInherit be taken out and it be left as Function Hi() As String
'' Overrides function Hi can not overide because the function is not defined as overridable correct?