CJCoding With Joseph

Boolean-Returning Interface Method

The IValidator interface declares bool IsValid(string input). Complete the NotEmptyValidator class so IsValid returns true when the input has at least one character and false when it is empty. Do NOT write a Main method.

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.