CJCoding With Joseph

Implement an Interface

The interface IGreeter declares a method Greet that returns a string. Make the FriendlyGreeter class implement IGreeter by providing a Greet method that returns Hello!. Do NOT write a Main method.

The tester runs IGreeter g = new FriendlyGreeter(); Console.WriteLine(g.Greet()); and the program prints:
Hello!

Expected Output:

Hello!
Topics:
Polymorphism
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.