# Example of abstraction in Python
from abc import ABC, abstractmethod
class Shape(ABC):
@abstractmethod
def area(self):
pass
class Rectangle(Shape):
def __init__(self, width, height):
self.width = width
self.height = height
def area(self):
return self.width * self.height
rectangle = Rectangle(4, 6)
print("Area of Rectangle:", rectangle.area()) # Output: Area of Rectangle: 24