Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
May a method decorated with @abstractmethod contain a concrete implementation?
from Python
advanced
1 min
May a method decorated with @abstractmethod contain a concrete implementation?
Yes; subclasses must still override it, and may call the base implementation with super()
No; any statement other than pass makes class creation fail
Yes; providing a body automatically removes its abstract status
Check
Ask AI about this kata
Report an error
next kata
Name the exception raised when a subclass still has an unimplemented abstract method and …
Fill in
A new version is available
Reload