Inheritance (programming)

Does this reply help to explain things? How to refer to different parts of the API while scripting

Also note that

function DoStuffInternal() {
   ....
}

Is a function in global space where you may actually want it as part of of the class prototype?