Mythryl uses packages and APIs where C++ uses classes. In general an API corresponds roughly to a Pure Abstract Base Class (which defines an interface), while a package corresponds to a vanilla class (which implements such an interface). Like a C++ class, a package may have elements of various kinds, which may be accessed outside the class using package::element notation.
The analogy should not be pushed too far; packages are not classes.