ClassParent方法或DelphiVCL.Application.ClassParent在Windows应用程序开发过程中用于返回一个类的直系祖先的类型。
ClassParent返回对象实例或类引用的父类名称。对于TObject,ClassParent返回nil(Delphi)或NULL(C++)。
避免在应用程序代码中使用ClassParent。
让我们用dir()命令浏览DelphiVCL.Application.ClassParent的所有属性和方法。
import DelphiVCL
dir(DelphiVCL.Application.ClassParent)
请看我们的Windows命令提示符中的反应。

你也可以使用print()命令来阅读DelphiVCL.Application.ClassParent 的简短信息。
print(DelphiVCL.Application.ClassParent)
print(DelphiVCL.Application.ClassParent.__doc__)
请看我们的Windows命令提示符中的响应。
