static void Main(string[] args) { Computer computer = new Computer(); Sd sd = new Sd(); computer.SetUsb(new SdReader(sd)); computer.ConnectUsb(); }
public SdReader(Sd sd) { _sd = sd; }
static void Main(string[] args) { Computer computer = new Computer(); Sd sd = new Sd(); computer.SetUsb(new SdReader(sd)); computer.ConnectUsb(); }
public SdReader(Sd sd) { _sd = sd; }