我「新來的接口接口類
我有這樣的代碼 例如:?
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);
}
}
}
我怎樣才能實現這個CALSS作爲接口
爲什麼一切都是靜態的? –
爲什麼所有的靜態和嵌套類? –
@avi:班級內的班級,這真的是你想要的嗎? –