CJCoding With Joseph

Read-Only Interface Property

The IPerson interface requires a read-only Name property. The Person class already declares a get-only Name property. Finish the constructor so it stores the name it is given. The tester creates a Person and prints its Name. Do NOT write a Main method.

For new Person("Ada") the program prints:
Ada

Expected Output:

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