I only have a mapping of Class strings to use to determine if the Class that the string represents inherits from another Class. I know I can use isKindOfClass on instances of objects, but I don't know how I can use a Class. So I'm trying to do something like...

```
NSString *className = [self.classMapping objectForKey:key];
Class class = NSClassFromString(className);
if (/* class inherits from ClassA */) 
    ClassA *classA = [[ClassA alloc] initWithClassAInitializer];
else if (/* class inherits from ClassB */)
    ClassB *classB = [[ClassB alloc] initWithClassBInitializer];

```

...but I don't know what goes in the if statements. How can I use a Class to determine if it inherits from another class?

Thanks in advance for your wisdom!