class Mango
{
private int a;
public int A { get{return a;} set{a=value;} }
private string b;
public string B { get { return b; } set { b = value; } }
}
class Banana1
{
public Mango[] m = new Mango[8];
public Mango this[int index]
{
get { return m[index]; }
set { m[index] = value; }
}
public static void Main(string []args)
{
//Please Implement code here for Mango class obj which hold 2 data maeber
}
Can we access whole obj as indexer if yes , would it be as multidimensional array
Or for one datamember we have one indexer
}