T
Tony Johansson
Hello!
When this method foo is called parameter car is passed. When this Sort in
the Array class is called is it nessesary
that all cars is of the same type. I know that the IComparable interface
must be implemented but could the
vector car contains SAAB, VOLVO, PORCHE and FORD.
I mean can this CompareTo method compare between different classes.
public static void foo( Car[] car )
{
Array.Sort(temp);
}
//Tony
When this method foo is called parameter car is passed. When this Sort in
the Array class is called is it nessesary
that all cars is of the same type. I know that the IComparable interface
must be implemented but could the
vector car contains SAAB, VOLVO, PORCHE and FORD.
I mean can this CompareTo method compare between different classes.
public static void foo( Car[] car )
{
Array.Sort(temp);
}
//Tony