CJCoding With Joseph

Interface Property

The interface IProduct declares a read-only Name property. Make the Book class implement IProduct by providing a Name property that returns C# in Depth. Do NOT write a Main method.

The tester runs IProduct p = new Book(); Console.WriteLine(p.Name); and the program prints:
C# in Depth

Expected Output:

C# in Depth
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.