Fixed missing class inheritence

This commit is contained in:
Brandon Rozek 2020-01-27 18:18:53 -05:00
parent b65a0bad03
commit 4305d8d5ca

View file

@ -16,7 +16,7 @@ from abc import ABC, abstractmethod
Then create an abstract class, making sure to add the decorator `@abstractmethod` to the constructor. This prevents the user from instantiating the class.
```python
class Animal:
class Animal(ABC):
@abstractmethod
def __init__(self, name):
self.name = name