Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local class = {}
- setmetatable( class, {__index = class} )
- function class:new(name)
- return setmetatable( {name = name or "Brittany Spears"}, class )
- end
- function class:getName()
- return self.name
- end
Advertisement
Add Comment
Please, Sign In to add comment