oops-4-02
oops-4-02
Child classes are responsible to provide implemention for parent class abstract methods.
Abstract class:
Some times implementation of a class is not complete,such type of partially implementation
classes are called abstract classes. Every abstract class in Python should be derived from ABC class
which is present in abc module.
Case-1:
In the above code we can create object for Test class b'z it is concrete class and it does not conatin
any abstract method.
Case-2:
In the above code we can create object,even it is derived from ABC class,b'z it does not contain
any abstract method.
Case-3:
nd
DURGASOFT, # 202, 2 Floor, HUDA Maitrivanam, Ameerpet, Hyderabad - 500038,
2 040 – 64 51 27 86, 80 96 96 96 96, 92 46 21 21 43 | www.durgasoft.com