G
Guest
hey all,
i created and implemented an interface called IAnimal.
inside my code when i instantiate an animal object:
dim _animal as IAnimal
_animal = new Dog()
i assumed i would be able to do something like this:
_animal.GetType()
and it would tell me it was a dog type.
do i have to code that myself? how would you do that?
thanks,
rodchar
i created and implemented an interface called IAnimal.
inside my code when i instantiate an animal object:
dim _animal as IAnimal
_animal = new Dog()
i assumed i would be able to do something like this:
_animal.GetType()
and it would tell me it was a dog type.
do i have to code that myself? how would you do that?
thanks,
rodchar