Using the public, static, and/or private keywords isn't unique to Haxe. It's quite common in Object-orientated programming (OOP) languages so it's not anything new. This video explains how it is used in Haxe.
Photo by Changbok Ko on Unsplash
If you've found this helpful, feel free to support me on Ko-fi
https://ko-fi.com/richardoliverbray