I could perhaps work around the problem but not knowing all the subtleties of the objects or their syntax I wanted to translate as closely as possible my code from Delphi.
I am trying to declare a class of stack.
TStack = Class Private Fcount : Integer; ... Public Constructor Create; ... end; ... Constructor TStack.Create; begin Inherited; Fcount:=0; SetLength(List,0); end;
For example, can a name be given to the Constructor (Create) and how to deal with the Inherited keyword?
Thanks in advance.