using System.Threading.Tasks;
using System.Collections.Generic;
private static String location;
private static DateTime time;
private static double a = 0.1;
private static double b = 0.2;
private static decimal c = 0.1M;
private static decimal d = 0.2M;
private static int[] numbers = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
public static async Task Main()
BaseClass bc = new BaseClass();
DerivedClass dc = new DerivedClass();
BaseClass bcdc = new DerivedClass();
public virtual void Method1()
Console.WriteLine("Base - Method1");
public virtual void Method2()
Console.WriteLine("Base - Method2");
class DerivedClass : BaseClass
public override void Method1()
Console.WriteLine("Derived - Method1");
public new void Method2()
Console.WriteLine("Derived - Method2");
Напишите запрос, чтобы поменять местами все значения `'f'` и `'m'` (т. е. изменить все значения `'f'` на `'m'` и наоборот) с помощью одного оператора update и без промежуточных таблиц
+----+------+--------+--------+
| id | name | gender | salary |
+----+------+--------+--------+
+----+------+--------+--------+
+----+------+--------+--------+
| id | name | gender | salary |
+----+------+--------+--------+
+----+------+--------+--------+
(1, A) and (3, C) were changed from 'm' to 'f'.
(2, B) and (4, D) were changed from 'f' to 'm'.