CJCoding With Joseph

Laptop Inherits Brand

Device has an auto-property Brand. Make Laptop inherit from Device so it has a Brand too. The tester sets Brand and prints it. Do NOT write a Main method.

When Brand is set to Acer, the program prints:

Acer

Expected Output:

Acer
Topics:
Inheritance
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.