This will seem a lot like another post I made but I am writing a similar program in C#.
I have class Card and class Land which is a subclass of Card. In Java, I used instanceof
to determine if it was a child of Card.
The object being referred to is held in the variable c
I have already tried:
if (typeof (Land).isSubClassOf(typeof(Card))){
//random code
}
What i'm trying to do, in java, would be:
if ( c instanceof Land){
}