Override privileged method of base class
问题 How can I go about making a child class override a privileged method of a base class? If its not possible, is there another way to achieve what I am trying to accomplish in the simple code example below? I cannot convert the baseclass function parseXML() to public because it requires access to private variables function BaseClass() { var map = {}; // I cannot make this function public BECAUSE it accesses & changes private variables this.parseXML = function( key, value ) { alert("BaseClass: