Created
April 25, 2020 18:48
-
-
Save domiyanyue/a7d7f4a8e9c0ad060cda831692c4fddc to your computer and use it in GitHub Desktop.
class example for declaration
This file contains hidden or 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 House; | |
class Owner; | |
class House{ | |
public: | |
Owner* my_owner; | |
House(Owner* owner){ | |
my_owner = owner; | |
} | |
~House(){} | |
}; | |
class Owner{ | |
public: | |
House* my_house; | |
Owner(House* house){ | |
my_house = house; | |
} | |
~Owner(){} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment