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!
You must be signed in to leave a comment
22 February 2022, 22:07
Overriding only deals with method signature, not return type