Answers for "Abstraction example python"

1

Abstraction example python

from abc import ABC,abstractclassmethod

class Parent(ABC):

    @abstractclassmethod
    def pqr(self):
        pass

class Child(Parent):

    def pqr(self):
        print("PQR")

obj = Child()
obj.pqr()
Posted by: Guest on September-05-2020

Code answers related to "Abstraction example python"

Python Answers by Framework

Browse Popular Code Answers by Language