How can code be classified in a Thesis(Figure, Table, Listing, etc)
Insert it as a listing. The convention is to print code verbatim in monospace font. If you're writing in LaTeX, the listings package exists for this purpose.