Advertisement
horozov86

Zoo_task_2

Jun 30th, 2023
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. class Animal:
  2.     def __init__(self, name)
  3.     self.name = name
  4.    
  5. class Reptile(Animal):
  6.     pass
  7.  
  8. class Mammal(Animal):
  9.     pass
  10.  
  11. class Lizard(Reptile):
  12.     pass
  13.  
  14. class Snake(Reptile):
  15.     pass
  16.  
  17. class Gorilla(Mammal):
  18.     pass
  19.  
  20. class Bear(Mammal):
  21.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement