-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemp.py
49 lines (36 loc) · 968 Bytes
/
temp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class Animal:
def __init__(self, bark, meow):
self.bark = bark
self.meow = meow
class Dog(Animal):
def __init__(self):
super().__init__(True, False)
class Cat(Animal):
def __init__(self):
super().__init__(False, True)
# class DogCat(Dog, Cat):
# def __init__(self):
# super(DogCat, self).__init__()
cat = Cat()
# dog = Dog()
# abomination = DogCat()
# print(cat.call)
# print(dog.call)
print(cat.bark, cat.meow)
# musi = Musi("Musi!!", "HaHeng")
# print(musi.name, musi.call)
# class First(object):
# def __init__(self):
# print("first")
# class Second(First):
# def __init__(self):
# print("second")
# class Third(First):
# def __init__(self):
# print("third")
# class Fourth(Second, Third, First):
# def __init__(self):
# # super(Fourth, self).__init__()
# super(Third, self).__init__()
# # print("that's it")
# fourth = Fourth()