"""Create fallback_executor
Generated by Phi-Octopus Eden
2025-11-05 21:44:15.370803
"""

```python
from typing import Callable, Any

class FallbackExecutor:
    """
    A class for executing a function with fallback capabilities.
    
    This executor attempts to execute a given function. If an exception occurs,
    it tries to run a specified fallback function instead.

    Attributes:
        func (Callable): The main function to be executed.
        fallback_func (Callable): The function to fall back on in case of failure.
    """
    
    def __init__(self, func: Callable[..., Any], fallback_func: Callable[..., Any]):
        self.func = func
        self.fallback_func = fallback_func

    def execute(self) -> Any:
        try:
            result = self.func()
        except Exception as e:
            print(f"Error occurred in main function: {e}")
            result = self.fallback_func()
        return result


# Example usage:

def divide_numbers(x: int, y: int) -> float:
    """Divide two numbers."""
    return x / y

def multiply_numbers(x: int, y: int) -> int:
    """Multiply two numbers as a fallback."""
    return x * y

# Creating the FallbackExecutor instance
executor = FallbackExecutor(divide_numbers, fallback_func=multiply_numbers)

# Using it to execute the functions with error recovery
result = executor.execute(10, 2)
print(f"Result: {result}")  # Should print 5.0

try:
    result = executor.execute(10, 0)  # This will raise a division by zero error
except ZeroDivisionError as e:
    print(f"Caught an exception: {e}")
finally:
    result = executor.execute(10, 2)
    print(f"Fallback Result: {result}")  # Should print 5.0

```