public static void Main()
books[0]= new book(123,"book" );
books[1]= new book(1234 , "other book");
books[2]=new book(12345, "other book 2" );
for(int i=0; i<books.Length; i++)
Console.WriteLine(books[i]);
public book(int number, string name)
public void Setnumber(int n)
public void Setname(string nm)
public override string ToString()
return (this.number +"," + this.name);
public bool Equals(book other)
if(this.name==other.Getname())