public static void Main(string[] args) { //Your code goes here Console.WriteLine("Nama\t\t: Nurul Hikmawati"); Console.WriteLine("NIM\t\t: 19.11.2766"); Console.WriteLine("Kelas\t\t: 19 IF 03"); Console.WriteLine(); Console.WriteLine("==== OS ===="); Console.WriteLine(); ACOperatingSystem os; os = new MacOS(); os.pembuat(); os.kernel(); os.jenis(); Console.WriteLine(); os = new Windows(); os.pembuat(); os.kernel(); os.jenis(); Console.WriteLine(); Console.WriteLine("==== HEWAN ===="); Console.WriteLine(); IHewan hewan; hewan = new Ayam(); hewan.info(); hewan.suara(); hewan.jenis(); Console.WriteLine(); hewan = new Kucing(); hewan.info(); hewan.suara(); hewan.jenis(); }
public static void Main(string[] args) { //Your code goes here Console.WriteLine("Rafif Fauzan Almahdy | 19.11.2750 | IF03 "); Console.WriteLine(); Console.WriteLine("==== OS ===="); Console.WriteLine(); ACOperatingSystem os; os = new MacOS(); os.pembuat(); os.kernel(); os.jenis(); Console.WriteLine(); os = new Windows(); os.pembuat(); os.kernel(); os.jenis(); Console.WriteLine(); Console.WriteLine("==== HEWAN ===="); Console.WriteLine(); IHewan hewan; hewan = new Ayam(); hewan.info(); hewan.suara(); hewan.jenis(); Console.WriteLine(); hewan = new Kucing(); hewan.info(); hewan.suara(); hewan.jenis(); }
public static void Main(string[] args) { //Nama: Umi Solihah //Nim : 19.11.2747 Console.WriteLine("==== OS ===="); Console.WriteLine(); ACOperatingSystem os; os = new MacOS(); os.pembuat(); os.kernel(); os.jenis(); Console.WriteLine(); os = new Windows(); os.pembuat(); os.kernel(); os.jenis(); Console.WriteLine(); Console.WriteLine("==== HEWAN ===="); Console.WriteLine(); IHewan hewan; hewan = new Ayam(); hewan.info(); hewan.suara(); hewan.jenis(); Console.WriteLine(); hewan = new Kucing(); hewan.info(); hewan.suara(); hewan.jenis(); }