boxlang-classes-and-oop
Installation
SKILL.md
BoxLang Classes and Object-Oriented Programming
Overview
BoxLang classes are defined in .bx files. A class is a blueprint that encapsulates
properties (data) and functions/methods (behavior). BoxLang supports single
inheritance, multiple interface implementation, abstract classes, and static members.
Basic Class Structure
// File: models/User.bx
class accessors="true" {
// Properties (auto-generates getters/setters when accessors="true")
property name="firstName" type="string"
property name="lastName" type="string"
property name="email" type="string"
property name="createdAt" type="date"