Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

abstract class in python

class Circle(Shape):
    def __init__(self):
        super().__init__("circle")
 
    @property
    def name(self):
        return self.shape_name
 	def draw(self):    
        print("Drawing a Circle")
Source by www.scaler.com #
 
PREVIOUS NEXT
Tagged: #abstract #class #python
ADD COMMENT
Topic
Name
5+6 =