dim x as testparent = new testchild1
dim y as testparent = new testchild2
if x.GetType() is y.Gettype() then
console.writeline("they are the same type")
console.writeline("they are different types")
public class testchild1: inherits testparent
public class testchild2: inherits testparent