Somepotato

Untitled

Apr 13th, 2015
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. local class = {}
  2. setmetatable( class, {__index = class} )
  3. function class:new(name)
  4.     return setmetatable( {name = name or "Brittany Spears"}, class )
  5. end
  6.  
  7. function class:getName()
  8.     return self.name
  9. end
Advertisement
Add Comment
Please, Sign In to add comment