add method BaseClass.prototype.private