CJCoding With Joseph

Check Type With is

Dog inherits from Animal. Complete the static method Describe so it uses the is operator to return Dog when the argument is actually a Dog, and Animal otherwise. The tester prints the returned string. Do NOT write a Main method.

For a Dog argument the program prints:
Dog

For a plain Animal argument the program prints:
Animal

Expected Output:

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