-part 4 - Oop- | Python 3- Deep Dive

class VIPDiscount(DiscountStrategy): def apply(self, amount: float) -> float: return amount * 0.8

from typing import Protocol class Printer(Protocol): def print(self, doc: str) -> None: ... Python 3- Deep Dive -Part 4 - OOP-

class EmployeeDiscount(DiscountStrategy): # Extension: No existing code modified def apply(self, amount: float) -> float: return amount * 0.5 class VIPDiscount(DiscountStrategy): def apply(self