i"m new to interfaces
i have this code example :
public class DALF
{
public class Car
{
public int AddEdit(int? CarId, string Name)
{
....
}
public DataTable Get(int? CarId)
{
.....
return CarD.Get(obj);
}
}
public class Worker
{
public static int AddEdit(int? WorkerId, string Name)
{
....
}
public DataTable Get(int? WorkerId)
{
.....
return carD.Get(obj);
}
}
}
How can i implement this calss as interface?