static void Main(string[] args) { var memoryCard = new MemoryCard(); var cardReader = new CardReader(memoryCard); cardReader.ConnectWithUsbCabel(); }
static void Main(string[] args) { // Now this class is laptop, in future it may be a mediaplayer or mobile devise ILaptop laptop = new CardReader(); Laptop client = new Laptop(laptop); client.PlayAlbums(); Console.Read(); }
static void Main(string[] args) { IUSBAdapter cardReader = new CardReader("sdcard"); var data = cardReader.Read(); }