3D-City Model
    Preparing search index...

    Class CommandAbstract

    Abstract base class for a Command pattern implementation.

    Subclasses must implement the execute() method to perform the associated action.

    class LogCommand extends Command {
    execute() {
    console.log("Executing command logic!");
    }
    }

    const cmd = new LogCommand();
    cmd.execute(); // Logs: Executing command logic!

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Executes the command. Must be implemented by subclasses.

      Returns void

      Always throws unless implemented by subclass.