You need to sign in to do that
Don't have an account?
Riothamus
Getting APEX class name
I'm looking for an APEX method that tells me if an APEX object 'is a kind of' object or failing that, to get the Class Name.
Psuedo-code:
class A {
};
class B extends A {
};
class C extends A {
};
function some_function(A aobj) {
if (a.isKindOf(B)) {
// do something with B
} else if (a.isKindOf(C)) {
// do something with C
}
Thanks!
you can make use of instanceof keyword check here
Hi Riothamus,
You can use instanceof Keyword it will return true if it is instanceof of the given object Example is given below.
--
Thanks
Usman