Skip to content Skip to sidebar Skip to footer
Showing posts with the label Abstract Class

No Error While Instantiating Abstract Class, Even Though Abstract Method Is Not Implemented

I was trying out the below python code: from abc import ABCMeta, abstractmethod class Bar: __… Read more No Error While Instantiating Abstract Class, Even Though Abstract Method Is Not Implemented

Python: Hierarchy Of Abstract Classes Without Abstract Methods

So, here is a problem: I want to define an abstract class, let's say AbstractA, which does not… Read more Python: Hierarchy Of Abstract Classes Without Abstract Methods

Can I Prevent Class Definition Unless A Method Is Implemented?

I'm trying to figure out how to provide a base class to plugin writers so that they provide def… Read more Can I Prevent Class Definition Unless A Method Is Implemented?