get derived class||doc136025

September 20, 2022

Format

 Lib.derive(base, derive) 
  • The class to which the function belongs:Lib

Description

Returns a derived class that inherits the base class.


Parameters

Variable name type Description
base table base class
derive table Derived class


Value Returned

type Description
table Derived class


Code Samples

local classBase = require "class_base"
local NewClass = Lib.derive(classBase)