CJCoding With Joseph

Interface With a Read-Only Property

The interface INamed declares a read-only property string Name { get; }. The Dog class already stores a name in _name. Add the Name property so it returns _name. Do NOT write a Main method.

For a Dog created with "Rex" the program prints:
Rex

Expected Output:

Rex
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.