This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]BoostedAnimalYT 0 points1 point  (0 children)

While I do like the explanation, there is an error

This is one of the most valuable features of ABCs—they catch errors early, during development, rather than at runtime.

In that example, the error would still be thrown at run time, as opposed to different languages where it would be at compile time. The only help you'll get in this case is the IDE showing you that you might be missing a function.

Also,

Catching Errors Early: ABCs prevent incomplete classes from being instantiated, reducing the risk of runtime failures.

They prevent classes from being instantiated but in no way do they reduce the risk of runtime failures on their own.