Advertisements
Advertisements
प्रश्न
Give one example for abstract method.
मामले का अध्ययन
Advertisements
उत्तर
class Shape(object):
def area(self):
raise NotImplementedError
Here, area() is an abstract method because it is declared but not implemented in the parent class.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
