2
I created a class called descricaoo
that will receive some data parameters and will add in a List
of an interface called IInstrucao
. But give an error "the descricaoo class is not implemented to an interface"
How to fix this error? There is another way to send this data directly to the interface IInstrucao
?
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; }
}
Your Description class is not implementing the Iinstrucao Interface properties
– Rod
So your class doesn’t have the methods or the properties of the interface...
– KhaosDoctor
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero