unit untClassTeacher;interface
type
TTeacher = class
Name: string; //姓名
Sex: Boolean; //性别
Birthday: TDateTime; //出生日期
TeachPost: string; //职称
//constructor Create(NValue:string;SValue:Boolean;BValue:TDateTime;TPValue:string); overload;
constructor Create(NValue: string; SValue: Boolean;BValue: TDateTime; TPValue: string); overload;
function Talk: string;
end;下面是写构造函数的时候抱的错,请问这是什么问题?
[Error] untClassTeacher.pas(11): Unsatisfied forward or external declaration: 'TTeacher.Create'
谢谢
type
TTeacher = class
Name: string; //姓名
Sex: Boolean; //性别
Birthday: TDateTime; //出生日期
TeachPost: string; //职称
//constructor Create(NValue:string;SValue:Boolean;BValue:TDateTime;TPValue:string); overload;
constructor Create(NValue: string; SValue: Boolean;BValue: TDateTime; TPValue: string); overload;
function Talk: string;
end;下面是写构造函数的时候抱的错,请问这是什么问题?
[Error] untClassTeacher.pas(11): Unsatisfied forward or external declaration: 'TTeacher.Create'
谢谢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货