Creates a new class inherited from the type under the caret.