How do i create variables in the constructor?

guys im actually encountering some other problems could u help me.
I’m using this function to get the typewriter effect.


and this is how I call the function I want to be able to print different stuff on each instance that contains this variable.

yet this is what it prints out wtf : D

can someone help me what other ways I can do this. my brain has stopped working after messing around with it for so long