TarefaAgendada.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Alura_exercicios_poo
{
public abstract class TarefaAgendada
{
public abstract void Executar();
}
}
RelatorioTarefa.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Alura_exercicios_poo
{
internal class RelatorioTarefa : TarefaAgendada
{
public override void Executar()
{
Console.WriteLine("Gerando relatório mensal...");
}
}
}
LimpezaTarefa.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Alura_exercicios_poo
{
internal class LimpezaTarefa : TarefaAgendada
{
public override void Executar()
{
Console.WriteLine("Limpando arquivos temporários...");
}
}
}
BackupTarefa.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Alura_exercicios_poo
{
internal class BackupTarefa : TarefaAgendada
{
public override void Executar()
{
Console.WriteLine("Executando backup de dados...");
}
}
}