table.Inherit
From GMod Wiki
| Function | |
| Syntax |
table.Inherit( Table child, Table parent ) Where is this used? |
| Description: | |
| Causes one table (child) to inherit the contents of another table (parent) | |
| Returns: | Table child |
| Part of Library: | Table |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Table.Inherit]Table.Inherit [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- A table can only inherit from one table at a time
- While 'inheriting', BaseClass is a reference to the parent table, not a copy of it. Any changes to BaseClass affect the parent table