using System.Collections.Generic;
using static System.Console;
public interface IPeriodo
void Fechas(String FechaI, String FechaF);
public class frmAsistencia : IPeriodo
void IPeriodo.Fechas(string FechaI, string FechaF)
Console.WriteLine("Desde hijo, fecha es: " + FechaI + " & " + FechaF);
IPeriodo date {get; set;}
DateTime[] Per = new DateTime[2] { DateTime.Now, DateTime.Now};
if(Per[0] > Convert.ToDateTime("2020/01/30"))
date = new frmAsistencia();
Per[0] = Per[0].AddDays(-7);
Per[1] = Per[1].AddDays(-7);
date.Fechas(Per[0].ToShortDateString(), Per[1].ToShortDateString());
public static void Main()
Padre padre = new Padre();