Created
October 18, 2018 01:45
-
-
Save menyf/a475fe14891ed77c20e26de2d7eaf96b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Animal{ | |
public: | |
virtual Animal * getFather() {} | |
virtual Animal * getMother() {} | |
}; | |
class Cat: public Animal { | |
public: | |
virtual Cat * getFather(){} | |
virtual Cat * getMother(){} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment