public static void Main(string[] args) { Console.WriteLine(); Console.WriteLine("==== Stats Senjata ===="); Console.WriteLine(); Stats stats; stats = new smg(); stats.name(); stats.accurate(); stats.damage(); Console.WriteLine(); stats = new rifle(); stats.name(); stats.accurate(); stats.damage(); Console.WriteLine(); stats = new sniper(); stats.name(); stats.accurate(); stats.damage(); }
public static void Main(string[] args) { Console.WriteLine(); Console.WriteLine("==== Senjata ===="); Console.WriteLine(); ISenjata senjata; senjata = new pistol(); senjata.jenis(); senjata.peluru(); senjata.caliber(); Console.WriteLine(); senjata = new sniper(); senjata.jenis(); senjata.peluru(); senjata.caliber(); }