Your question is quite confusing... So the answer is "yes and no"...
Let see...
Title (how to make class): see the
Objects tutorial, perhaps.
First question (turn whole code into a class): it depends on the code...
Second question: well, yes.
Leave a comment on PhiLho's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic