Hi
Are you not allowed to use an Interface type as a parameter?
public bool setPayment(IPayment payment)
{...}
I get this message from the compiler:
"Inconsistent accessibility: parameter type 'OilLib.IPayment' is less accessible than method 'OilLib.DBFacade.setPayment(OilLib.IPayment)'"
Any comments?
What other way can I solve this so that I not need to
set a spesific object(class) that implements the interface. (Abstract class or a Base class??)
Are you not allowed to use an Interface type as a parameter?
public bool setPayment(IPayment payment)
{...}
I get this message from the compiler:
"Inconsistent accessibility: parameter type 'OilLib.IPayment' is less accessible than method 'OilLib.DBFacade.setPayment(OilLib.IPayment)'"
Any comments?
What other way can I solve this so that I not need to
set a spesific object(class) that implements the interface. (Abstract class or a Base class??)