CJCoding With Joseph

Manager Reads Protected Id

Employee has a protected field id set to 42. A protected member is visible to subclasses. Complete GetId in Manager so it returns id. Do NOT write a Main method.

The program prints:

42

Expected Output:

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