Interfaces Demo – Çoklu İmplementasyon

Interfacelerde classların aksine birden fazla implementasyon gerçekleştirebiliriz using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace InterfacesDemo { class Program { //SOLID (I) Interface Segregation Principle static void Main(string[] args) { IWorker[] workers = new IWorker[3]; { new Manager(); new Worker(); new Robot(); }; foreach (var worker in workers) { worker.Work(); } IEat[]... Okumaya Devam et →

WordPress.com'da bir web sitesi veya blog oluşturun

Yukarı ↑

WordPress.com ile böyle bir site tasarlayın
Başlayın