I have an Array of AutoMobiles
This array may contain SubClass Objects Truck or Car.
How do I test a Position in the Array for the type of Object?
eg:
if(AutoMobileArray[1].IsObject(Car)){}
The Car Class has a unique Accessor
public String BootSpace()
How can I use the SubClass Objects Accessors?
eg:
if(AutoMobileArray[1].IsObject(Car))
{
BootSpaceLabel.Text = AutoMobileArray[1].BootSpace();
}
Well, If I understand you correctly, there’s the
isoperator:To do stuff with the subclass (access methods defined in the subclass etc.) you need to cast: