Cats should not be abstract! Don't take my word for it - ask Schrodinger's cat. Its chilling story will convert any skeptic. But to not be bored, cats need their forever frenemies: dogs. So we will complete a task where two non-abstract Cat and Dog classes will inherit Pet, and then we'll write methods for them.
Cats should not be abstract!
- 3
Locked
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Andrew Evans
22 February 2022, 22:07
Overriding only deals with method signature, not return type
0