have simple object hierarchy like below
TLiveThing=class
protected
FTest:string;
constructor Create(whereLive:string);overload;virtual;
constructor Create(haveBone:Boolean);overload;virtual;
end;
THuman=class(TLiveThing)
public
constructor Create(whereLive:string);overload;override;
constructor Create(age:integer);overload;
end;
in theoretically, if I instantiate THuman, I have 2 constructor, but in fact I have 5 constructor displayed by code insight, actually I want to see 3 constructor, - Create(whereLive:String), overriden - Create(age:integer) - Create(haveBone:integer)
human:=THuman.Create( <=====in there I have 5 suggestion constructor
why I have this strange behaviour? how to fix it, because it so anoying, I cant always check my class that I need to instantiate, and if I instantiate like below
human:=THuman.Create(); <===== it doesnt give me error
how I completely hide my anchestor constructor? , because if I instatiate like above, completely give me a wrong object
UPDATE: and also I can see default Create without parameter from TObject too