diff --git a/main.py b/main.py new file mode 100644 index 0000000000..73ac2baaf1 --- /dev/null +++ b/main.py @@ -0,0 +1,18 @@ +class Dog: + + def __init__(self,name,colour): + self.name = name + self.colour = colour + + def bark(times): + for i in range(times): + print("Woof") + +class Puppy(Dog): + + def __init__(self,name,colour): + super().__init__(name,colour) + +dog1 = Dog("Elliot","White") +puppy1 = Puppy("Jake","Black") +print(dog1,puppy1) \ No newline at end of file