Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class class1():
- def start_something(self):
- a=1+1
- var=class1()
- class1.do_something(a)
- class class2:
- def do_something(self,a):
- b=a+1
- self.make_something(b)
- def make_something(self,b):
- print(b)
- if __name__ == "__main__":
- start=class1()
- start.start_somthing()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement