Wednesday, June 8, 2011

How to: Test if an object is of a specified type. instanceof JAVA, C# and Objective C

In Java, just using the instanceof keyword.
image
In C#, it has the similar syntax, Just called IS

image

In Objective-C, using keyword iskingofclass,
image

No comments:

 
Locations of visitors to this page