A Java-like class constructor that supports `private` and `parent`.