Java Q&A by Nadine McKenzie Listing One function MyClassName(parameterA, parameterB) { // --- Object Properties --- propertyR = "propertyR is read only."; // --- Object Initialization --- propertyA = parameterA; propertyB = parameterB; // --- Method Pointers --- this.getPropertyA = _getPropertyA; this.setPropertyA = _setPropertyA; this.getPropertyB = _getPropertyB; this.setPropertyB = _setPropertyB; this.getPropertyR = _getPropertyR; this.doSomeAction1 = _doSomeAction1; // --- Methods --- function _getPropertyA() { return propertyA; } function _setPropertyA(para) { propertyA = para; } function _getPropertyB() { return propertyB; } function _setPropertyB(para) { propertyB = para; } function _getPropertyR() { return propertyR; } function _doSomeAction1() { alert(aPrivateMethod() + " " + this.getPropertyR()); } function aPrivateMethod() { return "aPrivateMethod() is a private method."; } } Listing Two 2