Укажите код на языке C#, не содержащий ошибок при определении класса аксессора:
(Отметьте один правильный вариант ответа.)
Варианты ответа
public class AClass1 { public AClass1() { } private int [] imyArray = new int[20]; public int this[int ind1] { get { return imyArray[ind1]; } set { imyArray[ind1]= value; } } }(Верный ответ)
public class AClass1 { public AClass1() { } private int [] imyArray = new int[20]; public this[int ind1] { get { return imyArray[ind1]; } set { imyArray[ind1]= value; } } }
public class AClass1 { public AClass1() { } private int [] imyArray = new int[20]; public int this { get { return imyArray[ind1]; } set { imyArray[ind1]= value; } } }