הערה (קובץ קוד)
קובץ זה הוא קובץ קוד מסוג CPP.
#include "DeleteAction.h"
DeleteAction::DeleteAction(Directory& folder, const std::string& fileName)
: Action(), folder(folder), fileName(fileName) {
}
void DeleteAction::execute() const {
folder.removeFile(fileName);
}