Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Home:
- location = "집"
- pass
- class Office:
- def sample_method(self, home):
- return home.location
- test_home = Home()
- test_office = Office()
- print test_office.sample_method(test_home)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement