+ 1

So basically i get error while adding a pet….

It says ”cant instanstiate abstract class cat(or bird or hamster) with abstract methods info Why? And how do i fix it? https://code.sololearn.com/cW5xxeVVOG7J/?ref=app

22nd Apr 2022, 3:37 PM
Lenoname
2 Réponses
0
I saw your code and I am eager to use abc, but in this link: https://docs.python.org/3/library/abc.html is said that for constructing classes by `abc` module you should use ABCMeta instead of ABC and @abstractmethod for me should be removed and treat info() as other functions.
22nd Apr 2022, 6:59 PM
Ervis Meta
Ervis Meta - avatar
0
Ervis Meta - SoloHelper pet class should be abstract, i dont know any other way to make it abstract
22nd Apr 2022, 9:19 PM
Lenoname