O
Oliver S
I got a class, a VCL form actually. I have two const member that I am
initializing (in the order they were declared). My question is, do I put
them before calling inherited constructor or after? In other works, should
it look like this or like that?
__fastcall TfMJTuner::TfMJTuner(TComponent* Owner)
: OriginalWidth(Width), OriginalHeight(Height), TForm(Owner)
or
__fastcall TfMJTuner::TfMJTuner(TComponent* Owner)
: TForm(Owner), OriginalWidth(Width), OriginalHeight(Height)
The damn thing works either way, I wonder which way is the proper way?
initializing (in the order they were declared). My question is, do I put
them before calling inherited constructor or after? In other works, should
it look like this or like that?
__fastcall TfMJTuner::TfMJTuner(TComponent* Owner)
: OriginalWidth(Width), OriginalHeight(Height), TForm(Owner)
or
__fastcall TfMJTuner::TfMJTuner(TComponent* Owner)
: TForm(Owner), OriginalWidth(Width), OriginalHeight(Height)
The damn thing works either way, I wonder which way is the proper way?