By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,471 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

Identifying Errors in Form Code

P: 1
Identifying Errors in Form Code

Expand|Select|Wrap|Line Numbers
  1. 10.
  2. Class Hello
  3.  Function Hi () As String 
  4. Return "hi!" 
  5. End Function 
  6. End Class 
  7. Class WithIt
  8.  Inherits Hello 
  9. Overiddes Function Hi () As String 
  10. Return "Hey" 
  11. End Function 
  12. End Class
  13.  
  14. 12.
  15. Class Hello 
  16. MustOverride Function Hi () As String
  17. Return “hi!”
  18. End Function End Class
  19. Class DragRacer 
  20. Inherits Hello 
  21. Overrides Function Hi () As String
  22. Return “Start your engines!”
  23. End Function End Class
  24.  
  25. 14.
  26. MustInherit Class hello
  27.     MustOverride Function hi() As String
  28.     MustOverride Function hi(ByVal s As String) As String
  29. End Class
  30. Class euro
  31.     Inherits hello
  32.     Public Overrides Function hi() As String
  33.         Return "hi!"
  34.     End Function
  35.     Overrides Function hi(ByVal name As String) As String
  36.         Return "ciao " & name
  37.     End Function
  38. End Class
Nov 12 '15 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.