Student = {id = 100, name = "Tony"}
function Student.toString()
local s = "Name:" .. Student.name .. " id:" .. Student.id
return s
end
print(Student.toString()) //Name:Tony id:100
Student = {id = 100, name = "Tony"}
function Student.toString()
local s = "Name:" .. Student.name .. " id:" .. Student.id
return s
end
print(Student.toString()) //Name:Tony id:100