โ Back to Interfaces
Question 632
Boolean-Returning Interface Method
Boolean-Returning Interface Method
TheIValidatorinterface declaresbool IsValid(string input). Complete theNotEmptyValidatorclass soIsValidreturnstruewhen the input has at least one character andfalsewhen it is empty. Do NOT write aMainmethod. For"hi"the program prints: True For""it prints: False
Expected Output:
True
Topics:
Interfaces
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.