I was wondering if it is possible to have an object instance without calling any constructor directly. Something like that:
var
aObject : TMyObject;
begin
aObject.MyMethod; //will cause an AV, but is it possible?
end;
Edit:
I know about static methods, but thats is not what i am looking for. I am looking for an way to get the constructor called without having to explicit call it.
MyMethodrefers toSelfMyMethodis virtual.