I created a class called descricaoo
that will receive some data parameters and will add in a List
of an interface called IInstrucao
. But it gives an error "the description class is not implemented to an interface"
How to correct this error? Is there another way to send this data directly into the IInstrucao
interface?
class descricaoo:IInstrucao
{
private string descricaobol;
public descricaoo (int ibanco, int codigo, string descricaobol, int qtde)
{
this.descricaobol = descricaobol;
List<IInstrucao> desci = new List<IInstrucao>();
desci.Add(new descricaoo(ibanco,codigo,descricaobol,qtde));
}
}
public interface IInstrucao
{
IBanco Banco { get; set; }
int Codigo { get; set; }
string Descricao { get; set; }
int QuantidadeDias { get; set; }
}